﻿#pragma once

namespace MidiSound {

	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;
	//using namespace System::Runtime::InteropServices;  //字串轉換用

	//union { unsigned long word; unsigned char data[4]; } message;

	/// <summary>
	/// Form1 的摘要
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: 在此加入建構函式程式碼
			//
		}
		
	protected:
		/// <summary>
		/// 清除任何使用中的資源。
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}


	private: System::Windows::Forms::GroupBox^  groupBox1;
	private: System::Windows::Forms::Button^  MidiOutChangeBtn;
	public: System::Windows::Forms::ComboBox^  MidiOutBox;
	public: System::Windows::Forms::Timer^  PlayTimer;
	private: System::Windows::Forms::GroupBox^  groupBox5;
	private: System::Windows::Forms::Button^  ContChordStopBtn;
	private: System::Windows::Forms::Button^  ContChordPlayBtn;
	private: System::Windows::Forms::NumericUpDown^  ContChordTempoUpDown;
	private: System::Windows::Forms::Label^  label8;
	private: System::Windows::Forms::TabControl^  tabControl1;
	private: System::Windows::Forms::TabPage^  tabPage1;
	private: System::Windows::Forms::GroupBox^  groupBox4;
	private: System::Windows::Forms::Button^  P1InstrumentChangeBtn;

	private: System::Windows::Forms::NumericUpDown^  P1OneSndInstUpDown;

	private: System::Windows::Forms::Label^  label3;
	private: System::Windows::Forms::GroupBox^  groupBox3;



	private: System::Windows::Forms::NumericUpDown^  P1OneChordReferenceUpDown;
	private: System::Windows::Forms::Button^  P1OneChordMuteBtn;


	private: System::Windows::Forms::Button^  P1OneChordSendBtn;

	private: System::Windows::Forms::Label^  label6;
	private: System::Windows::Forms::ComboBox^  P1OneChordChordBox;

	private: System::Windows::Forms::NumericUpDown^  P1OneChordModeUpDown;

	private: System::Windows::Forms::Label^  label5;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::GroupBox^  groupBox2;



private: System::Windows::Forms::Button^  P1OneSndMuteBtn;

private: System::Windows::Forms::Button^  P1OneSndSendBtn;

	private: System::Windows::Forms::NumericUpDown^  P1OneSndPitchUpDown;

	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::TabPage^  tabPage2;
	private: System::Windows::Forms::TabPage^  tabPage3;
	private: System::Windows::Forms::TabPage^  tabPage4;
	private: System::Windows::Forms::TabPage^  tabPage5;
	private: System::Windows::Forms::TabPage^  tabPage6;
	private: System::Windows::Forms::TabPage^  tabPage7;
	private: System::Windows::Forms::TabPage^  tabPage8;
private: System::Windows::Forms::GroupBox^  groupBox6;
private: System::Windows::Forms::TrackBar^  P1VolBar;



private: System::Windows::Forms::GroupBox^  groupBox7;
private: System::Windows::Forms::TrackBar^  P2VolBar;





private: System::Windows::Forms::GroupBox^  groupBox8;
private: System::Windows::Forms::Button^  P2InstrumentChangeBtn;

private: System::Windows::Forms::NumericUpDown^  P2OneSndInstUpDown;

private: System::Windows::Forms::Label^  label9;
private: System::Windows::Forms::GroupBox^  groupBox9;



private: System::Windows::Forms::NumericUpDown^  P2OneChordReferenceUpDown;
private: System::Windows::Forms::Button^  P2OneChordMuteBtn;


private: System::Windows::Forms::Button^  P2OneChordSendBtn;

private: System::Windows::Forms::Label^  label11;
private: System::Windows::Forms::ComboBox^  P2OneChordChordBox;

private: System::Windows::Forms::NumericUpDown^  P2OneChordModeUpDown;

private: System::Windows::Forms::Label^  label12;
private: System::Windows::Forms::Label^  label13;
private: System::Windows::Forms::GroupBox^  groupBox10;



private: System::Windows::Forms::Button^  P2OneSndMuteBtn;

private: System::Windows::Forms::Button^  P2OneSndSendBtn;

private: System::Windows::Forms::NumericUpDown^  P2OneSndPitchUpDown;

private: System::Windows::Forms::Label^  label15;
private: System::Windows::Forms::GroupBox^  groupBox11;
private: System::Windows::Forms::TrackBar^  P3VolBar;




private: System::Windows::Forms::GroupBox^  groupBox12;
private: System::Windows::Forms::Button^  P3InstrumentChangeBtn;

private: System::Windows::Forms::NumericUpDown^  P3OneSndInstUpDown;

private: System::Windows::Forms::Label^  label16;
private: System::Windows::Forms::GroupBox^  groupBox13;



private: System::Windows::Forms::NumericUpDown^  P3OneChordReferenceUpDown;
private: System::Windows::Forms::Button^  P3OneChordMuteBtn;


private: System::Windows::Forms::Button^  P3OneChordSendBtn;

private: System::Windows::Forms::Label^  label18;
private: System::Windows::Forms::ComboBox^  P3OneChordChordBox;

private: System::Windows::Forms::NumericUpDown^  P3OneChordModeUpDown;

private: System::Windows::Forms::Label^  label19;
private: System::Windows::Forms::Label^  label20;
private: System::Windows::Forms::GroupBox^  groupBox14;



private: System::Windows::Forms::Button^  P3OneSndMuteBtn;

private: System::Windows::Forms::Button^  P3OneSndSendBtn;

private: System::Windows::Forms::NumericUpDown^  P3OneSndPitchUpDown;

private: System::Windows::Forms::Label^  label22;
private: System::Windows::Forms::GroupBox^  groupBox15;
private: System::Windows::Forms::TrackBar^  P4VolBar;



private: System::Windows::Forms::GroupBox^  groupBox16;
private: System::Windows::Forms::Button^  P4InstrumentChangeBtn;

private: System::Windows::Forms::NumericUpDown^  P4OneSndInstUpDown;

private: System::Windows::Forms::Label^  label23;
private: System::Windows::Forms::GroupBox^  groupBox17;



private: System::Windows::Forms::NumericUpDown^  P4OneChordReferenceUpDown;
private: System::Windows::Forms::Button^  P4OneChordMuteBtn;


private: System::Windows::Forms::Button^  P4OneChordSendBtn;

private: System::Windows::Forms::Label^  label25;
private: System::Windows::Forms::ComboBox^  P4OneChordChordBox;

private: System::Windows::Forms::NumericUpDown^  P4OneChordModeUpDown;

private: System::Windows::Forms::Label^  label26;
private: System::Windows::Forms::Label^  label27;
private: System::Windows::Forms::GroupBox^  groupBox18;



private: System::Windows::Forms::Button^  P4OneSndMuteBtn;

private: System::Windows::Forms::Button^  P4OneSndSendBtn;

private: System::Windows::Forms::NumericUpDown^  P4OneSndPitchUpDown;

private: System::Windows::Forms::Label^  label29;
private: System::Windows::Forms::GroupBox^  groupBox19;
private: System::Windows::Forms::TrackBar^  P5VolBar;



private: System::Windows::Forms::GroupBox^  groupBox20;
private: System::Windows::Forms::Button^  P5InstrumentChangeBtn;

private: System::Windows::Forms::NumericUpDown^  P5OneSndInstUpDown;

private: System::Windows::Forms::Label^  label30;
private: System::Windows::Forms::GroupBox^  groupBox21;


private: System::Windows::Forms::NumericUpDown^  P5OneChordReferenceUpDown;
private: System::Windows::Forms::Button^  P5OneChordMuteBtn;


private: System::Windows::Forms::Button^  P5OneChordSendBtn;

private: System::Windows::Forms::Label^  label32;
private: System::Windows::Forms::ComboBox^  P5OneChordChordBox;

private: System::Windows::Forms::NumericUpDown^  P5OneChordModeUpDown;

private: System::Windows::Forms::Label^  label33;
private: System::Windows::Forms::Label^  label34;
private: System::Windows::Forms::GroupBox^  groupBox22;



private: System::Windows::Forms::Button^  P5OneSndMuteBtn;

private: System::Windows::Forms::Button^  P5OneSndSendBtn;

private: System::Windows::Forms::NumericUpDown^  P5OneSndPitchUpDown;

private: System::Windows::Forms::Label^  label36;
private: System::Windows::Forms::GroupBox^  groupBox23;
private: System::Windows::Forms::TrackBar^  P6VolBar;



private: System::Windows::Forms::GroupBox^  groupBox24;
private: System::Windows::Forms::Button^  P6InstrumentChangeBtn;

private: System::Windows::Forms::NumericUpDown^  P6OneSndInstUpDown;

private: System::Windows::Forms::Label^  label37;
private: System::Windows::Forms::GroupBox^  groupBox25;


private: System::Windows::Forms::NumericUpDown^  P6OneChordReferenceUpDown;
private: System::Windows::Forms::Button^  P6OneChordMuteBtn;


private: System::Windows::Forms::Button^  P6OneChordSendBtn;

private: System::Windows::Forms::Label^  label39;
private: System::Windows::Forms::ComboBox^  P6OneChordChordBox;

private: System::Windows::Forms::NumericUpDown^  P6OneChordModeUpDown;

private: System::Windows::Forms::Label^  label40;
private: System::Windows::Forms::Label^  label41;
private: System::Windows::Forms::GroupBox^  groupBox26;



private: System::Windows::Forms::Button^  P6OneSndMuteBtn;

private: System::Windows::Forms::Button^  P6OneSndSendBtn;

private: System::Windows::Forms::NumericUpDown^  P6OneSndPitchUpDown;

private: System::Windows::Forms::Label^  label43;
private: System::Windows::Forms::GroupBox^  groupBox27;
private: System::Windows::Forms::TrackBar^  P7VolBar;



private: System::Windows::Forms::GroupBox^  groupBox28;
private: System::Windows::Forms::Button^  P7InstrumentChangeBtn;

private: System::Windows::Forms::NumericUpDown^  P7OneSndInstUpDown;

private: System::Windows::Forms::Label^  label44;
private: System::Windows::Forms::GroupBox^  groupBox29;


private: System::Windows::Forms::NumericUpDown^  P7OneChordReferenceUpDown;
private: System::Windows::Forms::Button^  P7OneChordMuteBtn;


private: System::Windows::Forms::Button^  P7OneChordSendBtn;

private: System::Windows::Forms::Label^  label46;
private: System::Windows::Forms::ComboBox^  P7OneChordChordBox;

private: System::Windows::Forms::NumericUpDown^  P7OneChordModeUpDown;

private: System::Windows::Forms::Label^  label47;
private: System::Windows::Forms::Label^  label48;
private: System::Windows::Forms::GroupBox^  groupBox30;



private: System::Windows::Forms::Button^  P7OneSndMuteBtn;

private: System::Windows::Forms::Button^  P7OneSndSendBtn;

private: System::Windows::Forms::NumericUpDown^  P7OneSndPitchUpDown;

private: System::Windows::Forms::Label^  label50;
private: System::Windows::Forms::GroupBox^  groupBox31;
private: System::Windows::Forms::TrackBar^  P8VolBar;



private: System::Windows::Forms::GroupBox^  groupBox32;
private: System::Windows::Forms::Button^  P8InstrumentChangeBtn;

private: System::Windows::Forms::NumericUpDown^  P8OneSndInstUpDown;

private: System::Windows::Forms::Label^  label51;
private: System::Windows::Forms::GroupBox^  groupBox33;


private: System::Windows::Forms::NumericUpDown^  P8OneChordReferenceUpDown;
private: System::Windows::Forms::Button^  P8OneChordMuteBtn;


private: System::Windows::Forms::Button^  P8OneChordSendBtn;

private: System::Windows::Forms::Label^  label53;
private: System::Windows::Forms::ComboBox^  P8OneChordChordBox;

private: System::Windows::Forms::NumericUpDown^  P8OneChordModeUpDown;

private: System::Windows::Forms::Label^  label54;
private: System::Windows::Forms::Label^  label55;
private: System::Windows::Forms::GroupBox^  groupBox34;



private: System::Windows::Forms::Button^  P8OneSndMuteBtn;

private: System::Windows::Forms::Button^  P8OneSndSendBtn;

private: System::Windows::Forms::NumericUpDown^  P8OneSndPitchUpDown;

private: System::Windows::Forms::Label^  label57;
private: System::Windows::Forms::NumericUpDown^  P1VolUpDown;
private: System::Windows::Forms::NumericUpDown^  P2VolUpDown;
private: System::Windows::Forms::NumericUpDown^  P3VolUpDown;
private: System::Windows::Forms::NumericUpDown^  P4VolUpDown;
private: System::Windows::Forms::NumericUpDown^  P5VolUpDown;
private: System::Windows::Forms::NumericUpDown^  P6VolUpDown;
private: System::Windows::Forms::NumericUpDown^  P7VolUpDown;
private: System::Windows::Forms::NumericUpDown^  P8VolUpDown;
private: System::Windows::Forms::Button^  button1;
private: System::Windows::Forms::Button^  button2;

private: 
	public: 
	private: 
	private: System::ComponentModel::IContainer^  components;
	public: 


	public: 

	public: 
	private: 



	protected: 

	private:
		/// <summary>
		/// 設計工具所需的變數。
		/// </summary>


#pragma region Windows Form Designer generated code
		/// <summary>
		/// 此為設計工具支援所需的方法 - 請勿使用程式碼編輯器
		/// 修改這個方法的內容。
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = (gcnew System::ComponentModel::Container());
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
			this->MidiOutChangeBtn = (gcnew System::Windows::Forms::Button());
			this->MidiOutBox = (gcnew System::Windows::Forms::ComboBox());
			this->PlayTimer = (gcnew System::Windows::Forms::Timer(this->components));
			this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
			this->ContChordTempoUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label8 = (gcnew System::Windows::Forms::Label());
			this->ContChordStopBtn = (gcnew System::Windows::Forms::Button());
			this->ContChordPlayBtn = (gcnew System::Windows::Forms::Button());
			this->tabControl1 = (gcnew System::Windows::Forms::TabControl());
			this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox6 = (gcnew System::Windows::Forms::GroupBox());
			this->P1VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P1VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
			this->P1InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P1OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label3 = (gcnew System::Windows::Forms::Label());
			this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
			this->P1OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P1OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P1OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label6 = (gcnew System::Windows::Forms::Label());
			this->P1OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P1OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label5 = (gcnew System::Windows::Forms::Label());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
			this->P1OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P1OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P1OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox7 = (gcnew System::Windows::Forms::GroupBox());
			this->P2VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P2VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox8 = (gcnew System::Windows::Forms::GroupBox());
			this->P2InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P2OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label9 = (gcnew System::Windows::Forms::Label());
			this->groupBox9 = (gcnew System::Windows::Forms::GroupBox());
			this->P2OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P2OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P2OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label11 = (gcnew System::Windows::Forms::Label());
			this->P2OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P2OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label12 = (gcnew System::Windows::Forms::Label());
			this->label13 = (gcnew System::Windows::Forms::Label());
			this->groupBox10 = (gcnew System::Windows::Forms::GroupBox());
			this->P2OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P2OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P2OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label15 = (gcnew System::Windows::Forms::Label());
			this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox11 = (gcnew System::Windows::Forms::GroupBox());
			this->P3VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P3VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox12 = (gcnew System::Windows::Forms::GroupBox());
			this->P3InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P3OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label16 = (gcnew System::Windows::Forms::Label());
			this->groupBox13 = (gcnew System::Windows::Forms::GroupBox());
			this->P3OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P3OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P3OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label18 = (gcnew System::Windows::Forms::Label());
			this->P3OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P3OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label19 = (gcnew System::Windows::Forms::Label());
			this->label20 = (gcnew System::Windows::Forms::Label());
			this->groupBox14 = (gcnew System::Windows::Forms::GroupBox());
			this->P3OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P3OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P3OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label22 = (gcnew System::Windows::Forms::Label());
			this->tabPage4 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox15 = (gcnew System::Windows::Forms::GroupBox());
			this->P4VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P4VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox16 = (gcnew System::Windows::Forms::GroupBox());
			this->P4InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P4OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label23 = (gcnew System::Windows::Forms::Label());
			this->groupBox17 = (gcnew System::Windows::Forms::GroupBox());
			this->P4OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P4OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P4OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label25 = (gcnew System::Windows::Forms::Label());
			this->P4OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P4OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label26 = (gcnew System::Windows::Forms::Label());
			this->label27 = (gcnew System::Windows::Forms::Label());
			this->groupBox18 = (gcnew System::Windows::Forms::GroupBox());
			this->P4OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P4OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P4OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label29 = (gcnew System::Windows::Forms::Label());
			this->tabPage5 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox19 = (gcnew System::Windows::Forms::GroupBox());
			this->P5VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P5VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox20 = (gcnew System::Windows::Forms::GroupBox());
			this->P5InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P5OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label30 = (gcnew System::Windows::Forms::Label());
			this->groupBox21 = (gcnew System::Windows::Forms::GroupBox());
			this->P5OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P5OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P5OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label32 = (gcnew System::Windows::Forms::Label());
			this->P5OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P5OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label33 = (gcnew System::Windows::Forms::Label());
			this->label34 = (gcnew System::Windows::Forms::Label());
			this->groupBox22 = (gcnew System::Windows::Forms::GroupBox());
			this->P5OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P5OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P5OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label36 = (gcnew System::Windows::Forms::Label());
			this->tabPage6 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox23 = (gcnew System::Windows::Forms::GroupBox());
			this->P6VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P6VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox24 = (gcnew System::Windows::Forms::GroupBox());
			this->P6InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P6OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label37 = (gcnew System::Windows::Forms::Label());
			this->groupBox25 = (gcnew System::Windows::Forms::GroupBox());
			this->P6OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P6OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P6OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label39 = (gcnew System::Windows::Forms::Label());
			this->P6OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P6OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label40 = (gcnew System::Windows::Forms::Label());
			this->label41 = (gcnew System::Windows::Forms::Label());
			this->groupBox26 = (gcnew System::Windows::Forms::GroupBox());
			this->P6OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P6OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P6OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label43 = (gcnew System::Windows::Forms::Label());
			this->tabPage7 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox27 = (gcnew System::Windows::Forms::GroupBox());
			this->P7VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P7VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox28 = (gcnew System::Windows::Forms::GroupBox());
			this->P7InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P7OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label44 = (gcnew System::Windows::Forms::Label());
			this->groupBox29 = (gcnew System::Windows::Forms::GroupBox());
			this->P7OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P7OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P7OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label46 = (gcnew System::Windows::Forms::Label());
			this->P7OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P7OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label47 = (gcnew System::Windows::Forms::Label());
			this->label48 = (gcnew System::Windows::Forms::Label());
			this->groupBox30 = (gcnew System::Windows::Forms::GroupBox());
			this->P7OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P7OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P7OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label50 = (gcnew System::Windows::Forms::Label());
			this->tabPage8 = (gcnew System::Windows::Forms::TabPage());
			this->groupBox31 = (gcnew System::Windows::Forms::GroupBox());
			this->P8VolUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P8VolBar = (gcnew System::Windows::Forms::TrackBar());
			this->groupBox32 = (gcnew System::Windows::Forms::GroupBox());
			this->P8InstrumentChangeBtn = (gcnew System::Windows::Forms::Button());
			this->P8OneSndInstUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label51 = (gcnew System::Windows::Forms::Label());
			this->groupBox33 = (gcnew System::Windows::Forms::GroupBox());
			this->P8OneChordReferenceUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->P8OneChordMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P8OneChordSendBtn = (gcnew System::Windows::Forms::Button());
			this->label53 = (gcnew System::Windows::Forms::Label());
			this->P8OneChordChordBox = (gcnew System::Windows::Forms::ComboBox());
			this->P8OneChordModeUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label54 = (gcnew System::Windows::Forms::Label());
			this->label55 = (gcnew System::Windows::Forms::Label());
			this->groupBox34 = (gcnew System::Windows::Forms::GroupBox());
			this->P8OneSndMuteBtn = (gcnew System::Windows::Forms::Button());
			this->P8OneSndSendBtn = (gcnew System::Windows::Forms::Button());
			this->P8OneSndPitchUpDown = (gcnew System::Windows::Forms::NumericUpDown());
			this->label57 = (gcnew System::Windows::Forms::Label());
			this->button1 = (gcnew System::Windows::Forms::Button());
			this->button2 = (gcnew System::Windows::Forms::Button());
			this->groupBox1->SuspendLayout();
			this->groupBox5->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ContChordTempoUpDown))->BeginInit();
			this->tabControl1->SuspendLayout();
			this->tabPage1->SuspendLayout();
			this->groupBox6->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1VolBar))->BeginInit();
			this->groupBox4->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneSndInstUpDown))->BeginInit();
			this->groupBox3->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneChordModeUpDown))->BeginInit();
			this->groupBox2->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneSndPitchUpDown))->BeginInit();
			this->tabPage2->SuspendLayout();
			this->groupBox7->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2VolBar))->BeginInit();
			this->groupBox8->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneSndInstUpDown))->BeginInit();
			this->groupBox9->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneChordModeUpDown))->BeginInit();
			this->groupBox10->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneSndPitchUpDown))->BeginInit();
			this->tabPage3->SuspendLayout();
			this->groupBox11->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3VolBar))->BeginInit();
			this->groupBox12->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneSndInstUpDown))->BeginInit();
			this->groupBox13->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneChordModeUpDown))->BeginInit();
			this->groupBox14->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneSndPitchUpDown))->BeginInit();
			this->tabPage4->SuspendLayout();
			this->groupBox15->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4VolBar))->BeginInit();
			this->groupBox16->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneSndInstUpDown))->BeginInit();
			this->groupBox17->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneChordModeUpDown))->BeginInit();
			this->groupBox18->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneSndPitchUpDown))->BeginInit();
			this->tabPage5->SuspendLayout();
			this->groupBox19->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5VolBar))->BeginInit();
			this->groupBox20->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneSndInstUpDown))->BeginInit();
			this->groupBox21->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneChordModeUpDown))->BeginInit();
			this->groupBox22->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneSndPitchUpDown))->BeginInit();
			this->tabPage6->SuspendLayout();
			this->groupBox23->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6VolBar))->BeginInit();
			this->groupBox24->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneSndInstUpDown))->BeginInit();
			this->groupBox25->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneChordModeUpDown))->BeginInit();
			this->groupBox26->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneSndPitchUpDown))->BeginInit();
			this->tabPage7->SuspendLayout();
			this->groupBox27->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7VolBar))->BeginInit();
			this->groupBox28->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneSndInstUpDown))->BeginInit();
			this->groupBox29->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneChordModeUpDown))->BeginInit();
			this->groupBox30->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneSndPitchUpDown))->BeginInit();
			this->tabPage8->SuspendLayout();
			this->groupBox31->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8VolUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8VolBar))->BeginInit();
			this->groupBox32->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneSndInstUpDown))->BeginInit();
			this->groupBox33->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneChordReferenceUpDown))->BeginInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneChordModeUpDown))->BeginInit();
			this->groupBox34->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneSndPitchUpDown))->BeginInit();
			this->SuspendLayout();
			// 
			// groupBox1
			// 
			this->groupBox1->Controls->Add(this->MidiOutChangeBtn);
			this->groupBox1->Controls->Add(this->MidiOutBox);
			this->groupBox1->Location = System::Drawing::Point(12, 12);
			this->groupBox1->Name = L"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(237, 55);
			this->groupBox1->TabIndex = 3;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"MidiOut Device";
			// 
			// MidiOutChangeBtn
			// 
			this->MidiOutChangeBtn->Location = System::Drawing::Point(166, 18);
			this->MidiOutChangeBtn->Name = L"MidiOutChangeBtn";
			this->MidiOutChangeBtn->Size = System::Drawing::Size(54, 25);
			this->MidiOutChangeBtn->TabIndex = 4;
			this->MidiOutChangeBtn->Text = L"OK";
			this->MidiOutChangeBtn->UseVisualStyleBackColor = true;
			this->MidiOutChangeBtn->Click += gcnew System::EventHandler(this, &Form1::MidiOutChangeBtn_Click);
			// 
			// MidiOutBox
			// 
			this->MidiOutBox->FormattingEnabled = true;
			this->MidiOutBox->Location = System::Drawing::Point(16, 21);
			this->MidiOutBox->Name = L"MidiOutBox";
			this->MidiOutBox->Size = System::Drawing::Size(144, 20);
			this->MidiOutBox->TabIndex = 3;
			this->MidiOutBox->Text = L"Microsoft GS Wavetable Synthetizer";
			this->MidiOutBox->SelectedIndexChanged += gcnew System::EventHandler(this, &Form1::MidiOutBox_SelectedIndexChanged);
			// 
			// PlayTimer
			// 
			this->PlayTimer->Tick += gcnew System::EventHandler(this, &Form1::PlayTimer_Tick);
			// 
			// groupBox5
			// 
			this->groupBox5->Controls->Add(this->ContChordTempoUpDown);
			this->groupBox5->Controls->Add(this->label8);
			this->groupBox5->Controls->Add(this->ContChordStopBtn);
			this->groupBox5->Controls->Add(this->ContChordPlayBtn);
			this->groupBox5->Location = System::Drawing::Point(12, 73);
			this->groupBox5->Name = L"groupBox5";
			this->groupBox5->Size = System::Drawing::Size(237, 104);
			this->groupBox5->TabIndex = 8;
			this->groupBox5->TabStop = false;
			this->groupBox5->Text = L"Play continuous chord";
			// 
			// ContChordTempoUpDown
			// 
			this->ContChordTempoUpDown->Location = System::Drawing::Point(62, 23);
			this->ContChordTempoUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {200, 0, 0, 0});
			this->ContChordTempoUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->ContChordTempoUpDown->Name = L"ContChordTempoUpDown";
			this->ContChordTempoUpDown->Size = System::Drawing::Size(65, 22);
			this->ContChordTempoUpDown->TabIndex = 9;
			this->ContChordTempoUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {120, 0, 0, 0});
			// 
			// label8
			// 
			this->label8->AutoSize = true;
			this->label8->Location = System::Drawing::Point(14, 25);
			this->label8->Name = L"label8";
			this->label8->Size = System::Drawing::Size(38, 12);
			this->label8->TabIndex = 8;
			this->label8->Text = L"Temop";
			// 
			// ContChordStopBtn
			// 
			this->ContChordStopBtn->Location = System::Drawing::Point(142, 54);
			this->ContChordStopBtn->Name = L"ContChordStopBtn";
			this->ContChordStopBtn->Size = System::Drawing::Size(75, 40);
			this->ContChordStopBtn->TabIndex = 1;
			this->ContChordStopBtn->Text = L"Stop";
			this->ContChordStopBtn->UseVisualStyleBackColor = true;
			this->ContChordStopBtn->Click += gcnew System::EventHandler(this, &Form1::ContChordStopBtn_Click);
			// 
			// ContChordPlayBtn
			// 
			this->ContChordPlayBtn->Location = System::Drawing::Point(142, 15);
			this->ContChordPlayBtn->Name = L"ContChordPlayBtn";
			this->ContChordPlayBtn->Size = System::Drawing::Size(75, 37);
			this->ContChordPlayBtn->TabIndex = 0;
			this->ContChordPlayBtn->Text = L"Play";
			this->ContChordPlayBtn->UseVisualStyleBackColor = true;
			this->ContChordPlayBtn->Click += gcnew System::EventHandler(this, &Form1::ContChordPlayBtn_Click);
			// 
			// tabControl1
			// 
			this->tabControl1->Controls->Add(this->tabPage1);
			this->tabControl1->Controls->Add(this->tabPage2);
			this->tabControl1->Controls->Add(this->tabPage3);
			this->tabControl1->Controls->Add(this->tabPage4);
			this->tabControl1->Controls->Add(this->tabPage5);
			this->tabControl1->Controls->Add(this->tabPage6);
			this->tabControl1->Controls->Add(this->tabPage7);
			this->tabControl1->Controls->Add(this->tabPage8);
			this->tabControl1->Location = System::Drawing::Point(255, 12);
			this->tabControl1->Name = L"tabControl1";
			this->tabControl1->SelectedIndex = 0;
			this->tabControl1->Size = System::Drawing::Size(259, 340);
			this->tabControl1->TabIndex = 9;
			// 
			// tabPage1
			// 
			this->tabPage1->Controls->Add(this->groupBox6);
			this->tabPage1->Controls->Add(this->groupBox4);
			this->tabPage1->Controls->Add(this->groupBox3);
			this->tabPage1->Controls->Add(this->groupBox2);
			this->tabPage1->Location = System::Drawing::Point(4, 22);
			this->tabPage1->Name = L"tabPage1";
			this->tabPage1->Padding = System::Windows::Forms::Padding(3);
			this->tabPage1->Size = System::Drawing::Size(251, 314);
			this->tabPage1->TabIndex = 0;
			this->tabPage1->Text = L"Port 1";
			this->tabPage1->UseVisualStyleBackColor = true;
			// 
			// groupBox6
			// 
			this->groupBox6->Controls->Add(this->P1VolUpDown);
			this->groupBox6->Controls->Add(this->P1VolBar);
			this->groupBox6->Location = System::Drawing::Point(7, 8);
			this->groupBox6->Name = L"groupBox6";
			this->groupBox6->Size = System::Drawing::Size(228, 69);
			this->groupBox6->TabIndex = 11;
			this->groupBox6->TabStop = false;
			this->groupBox6->Text = L"Volume";
			// 
			// P1VolUpDown
			// 
			this->P1VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P1VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P1VolUpDown->Name = L"P1VolUpDown";
			this->P1VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P1VolUpDown->TabIndex = 16;
			this->P1VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P1VolBar
			// 
			this->P1VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P1VolBar->Location = System::Drawing::Point(53, 16);
			this->P1VolBar->Maximum = 127;
			this->P1VolBar->Name = L"P1VolBar";
			this->P1VolBar->Size = System::Drawing::Size(164, 45);
			this->P1VolBar->TabIndex = 14;
			this->P1VolBar->Value = 100;
			this->P1VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P1VolBar_ValueChanged);
			// 
			// groupBox4
			// 
			this->groupBox4->Controls->Add(this->P1InstrumentChangeBtn);
			this->groupBox4->Controls->Add(this->P1OneSndInstUpDown);
			this->groupBox4->Controls->Add(this->label3);
			this->groupBox4->Location = System::Drawing::Point(7, 83);
			this->groupBox4->Name = L"groupBox4";
			this->groupBox4->Size = System::Drawing::Size(228, 56);
			this->groupBox4->TabIndex = 10;
			this->groupBox4->TabStop = false;
			this->groupBox4->Text = L"Instrument Select";
			// 
			// P1InstrumentChangeBtn
			// 
			this->P1InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P1InstrumentChangeBtn->Name = L"P1InstrumentChangeBtn";
			this->P1InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P1InstrumentChangeBtn->TabIndex = 7;
			this->P1InstrumentChangeBtn->Text = L"Change";
			this->P1InstrumentChangeBtn->UseVisualStyleBackColor = true;
			this->P1InstrumentChangeBtn->Click += gcnew System::EventHandler(this, &Form1::P1InstrumentChangeBtn_Click);
			// 
			// P1OneSndInstUpDown
			// 
			this->P1OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P1OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P1OneSndInstUpDown->Name = L"P1OneSndInstUpDown";
			this->P1OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P1OneSndInstUpDown->TabIndex = 6;
			// 
			// label3
			// 
			this->label3->AutoSize = true;
			this->label3->Location = System::Drawing::Point(6, 24);
			this->label3->Name = L"label3";
			this->label3->Size = System::Drawing::Size(55, 12);
			this->label3->TabIndex = 5;
			this->label3->Text = L"Instrument";
			// 
			// groupBox3
			// 
			this->groupBox3->Controls->Add(this->P1OneChordReferenceUpDown);
			this->groupBox3->Controls->Add(this->P1OneChordMuteBtn);
			this->groupBox3->Controls->Add(this->P1OneChordSendBtn);
			this->groupBox3->Controls->Add(this->label6);
			this->groupBox3->Controls->Add(this->P1OneChordChordBox);
			this->groupBox3->Controls->Add(this->P1OneChordModeUpDown);
			this->groupBox3->Controls->Add(this->label5);
			this->groupBox3->Controls->Add(this->label1);
			this->groupBox3->Location = System::Drawing::Point(7, 203);
			this->groupBox3->Name = L"groupBox3";
			this->groupBox3->Size = System::Drawing::Size(228, 100);
			this->groupBox3->TabIndex = 9;
			this->groupBox3->TabStop = false;
			this->groupBox3->Text = L"Play one chord";
			// 
			// P1OneChordReferenceUpDown
			// 
			this->P1OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P1OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P1OneChordReferenceUpDown->Name = L"P1OneChordReferenceUpDown";
			this->P1OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P1OneChordReferenceUpDown->TabIndex = 12;
			this->P1OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P1OneChordMuteBtn
			// 
			this->P1OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P1OneChordMuteBtn->Name = L"P1OneChordMuteBtn";
			this->P1OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P1OneChordMuteBtn->TabIndex = 11;
			this->P1OneChordMuteBtn->Text = L"Mute";
			this->P1OneChordMuteBtn->UseVisualStyleBackColor = true;
			this->P1OneChordMuteBtn->Click += gcnew System::EventHandler(this, &Form1::P1OneChordMuteBtn_Click);
			// 
			// P1OneChordSendBtn
			// 
			this->P1OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P1OneChordSendBtn->Name = L"P1OneChordSendBtn";
			this->P1OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P1OneChordSendBtn->TabIndex = 10;
			this->P1OneChordSendBtn->Text = L"Send";
			this->P1OneChordSendBtn->UseVisualStyleBackColor = true;
			this->P1OneChordSendBtn->Click += gcnew System::EventHandler(this, &Form1::P1OneChordSendBtn_Click);
			// 
			// label6
			// 
			this->label6->AutoSize = true;
			this->label6->Location = System::Drawing::Point(14, 72);
			this->label6->Name = L"label6";
			this->label6->Size = System::Drawing::Size(35, 12);
			this->label6->TabIndex = 9;
			this->label6->Text = L"Chord";
			// 
			// P1OneChordChordBox
			// 
			this->P1OneChordChordBox->FormattingEnabled = true;
			this->P1OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P1OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P1OneChordChordBox->Name = L"P1OneChordChordBox";
			this->P1OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P1OneChordChordBox->TabIndex = 8;
			this->P1OneChordChordBox->Text = L"M";
			// 
			// P1OneChordModeUpDown
			// 
			this->P1OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P1OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P1OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P1OneChordModeUpDown->Name = L"P1OneChordModeUpDown";
			this->P1OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P1OneChordModeUpDown->TabIndex = 7;
			this->P1OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label5
			// 
			this->label5->AutoSize = true;
			this->label5->Location = System::Drawing::Point(14, 44);
			this->label5->Name = L"label5";
			this->label5->Size = System::Drawing::Size(32, 12);
			this->label5->TabIndex = 2;
			this->label5->Text = L"Mode";
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(6, 18);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(52, 12);
			this->label1->TabIndex = 0;
			this->label1->Text = L"Reference";
			// 
			// groupBox2
			// 
			this->groupBox2->Controls->Add(this->P1OneSndMuteBtn);
			this->groupBox2->Controls->Add(this->P1OneSndSendBtn);
			this->groupBox2->Controls->Add(this->P1OneSndPitchUpDown);
			this->groupBox2->Controls->Add(this->label2);
			this->groupBox2->Location = System::Drawing::Point(7, 145);
			this->groupBox2->Name = L"groupBox2";
			this->groupBox2->Size = System::Drawing::Size(228, 52);
			this->groupBox2->TabIndex = 8;
			this->groupBox2->TabStop = false;
			this->groupBox2->Text = L"Play one sound";
			// 
			// P1OneSndMuteBtn
			// 
			this->P1OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P1OneSndMuteBtn->Name = L"P1OneSndMuteBtn";
			this->P1OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P1OneSndMuteBtn->TabIndex = 7;
			this->P1OneSndMuteBtn->Text = L"Mute";
			this->P1OneSndMuteBtn->UseVisualStyleBackColor = true;
			this->P1OneSndMuteBtn->Click += gcnew System::EventHandler(this, &Form1::P1OneSndMuteBtn_Click);
			// 
			// P1OneSndSendBtn
			// 
			this->P1OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P1OneSndSendBtn->Name = L"P1OneSndSendBtn";
			this->P1OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P1OneSndSendBtn->TabIndex = 6;
			this->P1OneSndSendBtn->Text = L"Send";
			this->P1OneSndSendBtn->UseVisualStyleBackColor = true;
			this->P1OneSndSendBtn->Click += gcnew System::EventHandler(this, &Form1::P1OneSndSendBtn_Click);
			// 
			// P1OneSndPitchUpDown
			// 
			this->P1OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P1OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P1OneSndPitchUpDown->Name = L"P1OneSndPitchUpDown";
			this->P1OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P1OneSndPitchUpDown->TabIndex = 5;
			this->P1OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(6, 22);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(28, 12);
			this->label2->TabIndex = 1;
			this->label2->Text = L"Pitch";
			// 
			// tabPage2
			// 
			this->tabPage2->Controls->Add(this->groupBox7);
			this->tabPage2->Controls->Add(this->groupBox8);
			this->tabPage2->Controls->Add(this->groupBox9);
			this->tabPage2->Controls->Add(this->groupBox10);
			this->tabPage2->Location = System::Drawing::Point(4, 22);
			this->tabPage2->Name = L"tabPage2";
			this->tabPage2->Padding = System::Windows::Forms::Padding(3);
			this->tabPage2->Size = System::Drawing::Size(251, 314);
			this->tabPage2->TabIndex = 1;
			this->tabPage2->Text = L"Port 2";
			this->tabPage2->UseVisualStyleBackColor = true;
			// 
			// groupBox7
			// 
			this->groupBox7->Controls->Add(this->P2VolUpDown);
			this->groupBox7->Controls->Add(this->P2VolBar);
			this->groupBox7->Location = System::Drawing::Point(7, 8);
			this->groupBox7->Name = L"groupBox7";
			this->groupBox7->Size = System::Drawing::Size(228, 69);
			this->groupBox7->TabIndex = 15;
			this->groupBox7->TabStop = false;
			this->groupBox7->Text = L"Volume";
			// 
			// P2VolUpDown
			// 
			this->P2VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P2VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P2VolUpDown->Name = L"P2VolUpDown";
			this->P2VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P2VolUpDown->TabIndex = 16;
			this->P2VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P2VolBar
			// 
			this->P2VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P2VolBar->Location = System::Drawing::Point(53, 16);
			this->P2VolBar->Maximum = 127;
			this->P2VolBar->Name = L"P2VolBar";
			this->P2VolBar->Size = System::Drawing::Size(164, 45);
			this->P2VolBar->TabIndex = 14;
			this->P2VolBar->Value = 100;
			this->P2VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P2VolBar_ValueChanged);
			// 
			// groupBox8
			// 
			this->groupBox8->Controls->Add(this->P2InstrumentChangeBtn);
			this->groupBox8->Controls->Add(this->P2OneSndInstUpDown);
			this->groupBox8->Controls->Add(this->label9);
			this->groupBox8->Location = System::Drawing::Point(7, 83);
			this->groupBox8->Name = L"groupBox8";
			this->groupBox8->Size = System::Drawing::Size(228, 56);
			this->groupBox8->TabIndex = 14;
			this->groupBox8->TabStop = false;
			this->groupBox8->Text = L"Instrument Select";
			// 
			// P2InstrumentChangeBtn
			// 
			this->P2InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P2InstrumentChangeBtn->Name = L"P2InstrumentChangeBtn";
			this->P2InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P2InstrumentChangeBtn->TabIndex = 7;
			this->P2InstrumentChangeBtn->Text = L"Change";
			this->P2InstrumentChangeBtn->UseVisualStyleBackColor = true;
			this->P2InstrumentChangeBtn->Click += gcnew System::EventHandler(this, &Form1::P2InstrumentChangeBtn_Click);
			// 
			// P2OneSndInstUpDown
			// 
			this->P2OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P2OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P2OneSndInstUpDown->Name = L"P2OneSndInstUpDown";
			this->P2OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P2OneSndInstUpDown->TabIndex = 6;
			// 
			// label9
			// 
			this->label9->AutoSize = true;
			this->label9->Location = System::Drawing::Point(6, 24);
			this->label9->Name = L"label9";
			this->label9->Size = System::Drawing::Size(55, 12);
			this->label9->TabIndex = 5;
			this->label9->Text = L"Instrument";
			// 
			// groupBox9
			// 
			this->groupBox9->Controls->Add(this->P2OneChordReferenceUpDown);
			this->groupBox9->Controls->Add(this->P2OneChordMuteBtn);
			this->groupBox9->Controls->Add(this->P2OneChordSendBtn);
			this->groupBox9->Controls->Add(this->label11);
			this->groupBox9->Controls->Add(this->P2OneChordChordBox);
			this->groupBox9->Controls->Add(this->P2OneChordModeUpDown);
			this->groupBox9->Controls->Add(this->label12);
			this->groupBox9->Controls->Add(this->label13);
			this->groupBox9->Location = System::Drawing::Point(7, 203);
			this->groupBox9->Name = L"groupBox9";
			this->groupBox9->Size = System::Drawing::Size(228, 100);
			this->groupBox9->TabIndex = 13;
			this->groupBox9->TabStop = false;
			this->groupBox9->Text = L"Play one chord";
			// 
			// P2OneChordReferenceUpDown
			// 
			this->P2OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P2OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P2OneChordReferenceUpDown->Name = L"P2OneChordReferenceUpDown";
			this->P2OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P2OneChordReferenceUpDown->TabIndex = 12;
			this->P2OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P2OneChordMuteBtn
			// 
			this->P2OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P2OneChordMuteBtn->Name = L"P2OneChordMuteBtn";
			this->P2OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P2OneChordMuteBtn->TabIndex = 11;
			this->P2OneChordMuteBtn->Text = L"Mute";
			this->P2OneChordMuteBtn->UseVisualStyleBackColor = true;
			this->P2OneChordMuteBtn->Click += gcnew System::EventHandler(this, &Form1::P2OneChordMuteBtn_Click);
			// 
			// P2OneChordSendBtn
			// 
			this->P2OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P2OneChordSendBtn->Name = L"P2OneChordSendBtn";
			this->P2OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P2OneChordSendBtn->TabIndex = 10;
			this->P2OneChordSendBtn->Text = L"Send";
			this->P2OneChordSendBtn->UseVisualStyleBackColor = true;
			this->P2OneChordSendBtn->Click += gcnew System::EventHandler(this, &Form1::P2OneChordSendBtn_Click);
			// 
			// label11
			// 
			this->label11->AutoSize = true;
			this->label11->Location = System::Drawing::Point(14, 72);
			this->label11->Name = L"label11";
			this->label11->Size = System::Drawing::Size(35, 12);
			this->label11->TabIndex = 9;
			this->label11->Text = L"Chord";
			// 
			// P2OneChordChordBox
			// 
			this->P2OneChordChordBox->FormattingEnabled = true;
			this->P2OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P2OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P2OneChordChordBox->Name = L"P2OneChordChordBox";
			this->P2OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P2OneChordChordBox->TabIndex = 8;
			this->P2OneChordChordBox->Text = L"M";
			// 
			// P2OneChordModeUpDown
			// 
			this->P2OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P2OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P2OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P2OneChordModeUpDown->Name = L"P2OneChordModeUpDown";
			this->P2OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P2OneChordModeUpDown->TabIndex = 7;
			this->P2OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label12
			// 
			this->label12->AutoSize = true;
			this->label12->Location = System::Drawing::Point(14, 44);
			this->label12->Name = L"label12";
			this->label12->Size = System::Drawing::Size(32, 12);
			this->label12->TabIndex = 2;
			this->label12->Text = L"Mode";
			// 
			// label13
			// 
			this->label13->AutoSize = true;
			this->label13->Location = System::Drawing::Point(6, 18);
			this->label13->Name = L"label13";
			this->label13->Size = System::Drawing::Size(52, 12);
			this->label13->TabIndex = 0;
			this->label13->Text = L"Reference";
			// 
			// groupBox10
			// 
			this->groupBox10->Controls->Add(this->P2OneSndMuteBtn);
			this->groupBox10->Controls->Add(this->P2OneSndSendBtn);
			this->groupBox10->Controls->Add(this->P2OneSndPitchUpDown);
			this->groupBox10->Controls->Add(this->label15);
			this->groupBox10->Location = System::Drawing::Point(7, 145);
			this->groupBox10->Name = L"groupBox10";
			this->groupBox10->Size = System::Drawing::Size(228, 52);
			this->groupBox10->TabIndex = 12;
			this->groupBox10->TabStop = false;
			this->groupBox10->Text = L"Play one sound";
			// 
			// P2OneSndMuteBtn
			// 
			this->P2OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P2OneSndMuteBtn->Name = L"P2OneSndMuteBtn";
			this->P2OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P2OneSndMuteBtn->TabIndex = 7;
			this->P2OneSndMuteBtn->Text = L"Mute";
			this->P2OneSndMuteBtn->UseVisualStyleBackColor = true;
			this->P2OneSndMuteBtn->Click += gcnew System::EventHandler(this, &Form1::P2OneSndMuteBtn_Click);
			// 
			// P2OneSndSendBtn
			// 
			this->P2OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P2OneSndSendBtn->Name = L"P2OneSndSendBtn";
			this->P2OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P2OneSndSendBtn->TabIndex = 6;
			this->P2OneSndSendBtn->Text = L"Send";
			this->P2OneSndSendBtn->UseVisualStyleBackColor = true;
			this->P2OneSndSendBtn->Click += gcnew System::EventHandler(this, &Form1::P2OneSndSendBtn_Click);
			// 
			// P2OneSndPitchUpDown
			// 
			this->P2OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P2OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P2OneSndPitchUpDown->Name = L"P2OneSndPitchUpDown";
			this->P2OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P2OneSndPitchUpDown->TabIndex = 5;
			this->P2OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label15
			// 
			this->label15->AutoSize = true;
			this->label15->Location = System::Drawing::Point(6, 22);
			this->label15->Name = L"label15";
			this->label15->Size = System::Drawing::Size(28, 12);
			this->label15->TabIndex = 1;
			this->label15->Text = L"Pitch";
			// 
			// tabPage3
			// 
			this->tabPage3->Controls->Add(this->groupBox11);
			this->tabPage3->Controls->Add(this->groupBox12);
			this->tabPage3->Controls->Add(this->groupBox13);
			this->tabPage3->Controls->Add(this->groupBox14);
			this->tabPage3->Location = System::Drawing::Point(4, 22);
			this->tabPage3->Name = L"tabPage3";
			this->tabPage3->Padding = System::Windows::Forms::Padding(3);
			this->tabPage3->Size = System::Drawing::Size(251, 314);
			this->tabPage3->TabIndex = 2;
			this->tabPage3->Text = L"Port 3";
			this->tabPage3->UseVisualStyleBackColor = true;
			// 
			// groupBox11
			// 
			this->groupBox11->Controls->Add(this->P3VolUpDown);
			this->groupBox11->Controls->Add(this->P3VolBar);
			this->groupBox11->Location = System::Drawing::Point(7, 8);
			this->groupBox11->Name = L"groupBox11";
			this->groupBox11->Size = System::Drawing::Size(228, 69);
			this->groupBox11->TabIndex = 15;
			this->groupBox11->TabStop = false;
			this->groupBox11->Text = L"Volume";
			// 
			// P3VolUpDown
			// 
			this->P3VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P3VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P3VolUpDown->Name = L"P3VolUpDown";
			this->P3VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P3VolUpDown->TabIndex = 16;
			this->P3VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P3VolBar
			// 
			this->P3VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P3VolBar->Location = System::Drawing::Point(53, 16);
			this->P3VolBar->Maximum = 127;
			this->P3VolBar->Name = L"P3VolBar";
			this->P3VolBar->Size = System::Drawing::Size(164, 45);
			this->P3VolBar->TabIndex = 14;
			this->P3VolBar->Value = 100;
			this->P3VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P3VolBar_ValueChanged);
			// 
			// groupBox12
			// 
			this->groupBox12->Controls->Add(this->P3InstrumentChangeBtn);
			this->groupBox12->Controls->Add(this->P3OneSndInstUpDown);
			this->groupBox12->Controls->Add(this->label16);
			this->groupBox12->Location = System::Drawing::Point(7, 83);
			this->groupBox12->Name = L"groupBox12";
			this->groupBox12->Size = System::Drawing::Size(228, 56);
			this->groupBox12->TabIndex = 14;
			this->groupBox12->TabStop = false;
			this->groupBox12->Text = L"Instrument Select";
			// 
			// P3InstrumentChangeBtn
			// 
			this->P3InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P3InstrumentChangeBtn->Name = L"P3InstrumentChangeBtn";
			this->P3InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P3InstrumentChangeBtn->TabIndex = 7;
			this->P3InstrumentChangeBtn->Text = L"Change";
			this->P3InstrumentChangeBtn->UseVisualStyleBackColor = true;
			this->P3InstrumentChangeBtn->Click += gcnew System::EventHandler(this, &Form1::P3InstrumentChangeBtn_Click);
			// 
			// P3OneSndInstUpDown
			// 
			this->P3OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P3OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P3OneSndInstUpDown->Name = L"P3OneSndInstUpDown";
			this->P3OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P3OneSndInstUpDown->TabIndex = 6;
			// 
			// label16
			// 
			this->label16->AutoSize = true;
			this->label16->Location = System::Drawing::Point(6, 24);
			this->label16->Name = L"label16";
			this->label16->Size = System::Drawing::Size(55, 12);
			this->label16->TabIndex = 5;
			this->label16->Text = L"Instrument";
			// 
			// groupBox13
			// 
			this->groupBox13->Controls->Add(this->P3OneChordReferenceUpDown);
			this->groupBox13->Controls->Add(this->P3OneChordMuteBtn);
			this->groupBox13->Controls->Add(this->P3OneChordSendBtn);
			this->groupBox13->Controls->Add(this->label18);
			this->groupBox13->Controls->Add(this->P3OneChordChordBox);
			this->groupBox13->Controls->Add(this->P3OneChordModeUpDown);
			this->groupBox13->Controls->Add(this->label19);
			this->groupBox13->Controls->Add(this->label20);
			this->groupBox13->Location = System::Drawing::Point(7, 203);
			this->groupBox13->Name = L"groupBox13";
			this->groupBox13->Size = System::Drawing::Size(228, 100);
			this->groupBox13->TabIndex = 13;
			this->groupBox13->TabStop = false;
			this->groupBox13->Text = L"Play one chord";
			// 
			// P3OneChordReferenceUpDown
			// 
			this->P3OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P3OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P3OneChordReferenceUpDown->Name = L"P3OneChordReferenceUpDown";
			this->P3OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P3OneChordReferenceUpDown->TabIndex = 12;
			this->P3OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P3OneChordMuteBtn
			// 
			this->P3OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P3OneChordMuteBtn->Name = L"P3OneChordMuteBtn";
			this->P3OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P3OneChordMuteBtn->TabIndex = 11;
			this->P3OneChordMuteBtn->Text = L"Mute";
			this->P3OneChordMuteBtn->UseVisualStyleBackColor = true;
			this->P3OneChordMuteBtn->Click += gcnew System::EventHandler(this, &Form1::P3OneChordMuteBtn_Click);
			// 
			// P3OneChordSendBtn
			// 
			this->P3OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P3OneChordSendBtn->Name = L"P3OneChordSendBtn";
			this->P3OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P3OneChordSendBtn->TabIndex = 10;
			this->P3OneChordSendBtn->Text = L"Send";
			this->P3OneChordSendBtn->UseVisualStyleBackColor = true;
			this->P3OneChordSendBtn->Click += gcnew System::EventHandler(this, &Form1::P3OneChordSendBtn_Click);
			// 
			// label18
			// 
			this->label18->AutoSize = true;
			this->label18->Location = System::Drawing::Point(14, 72);
			this->label18->Name = L"label18";
			this->label18->Size = System::Drawing::Size(35, 12);
			this->label18->TabIndex = 9;
			this->label18->Text = L"Chord";
			// 
			// P3OneChordChordBox
			// 
			this->P3OneChordChordBox->FormattingEnabled = true;
			this->P3OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P3OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P3OneChordChordBox->Name = L"P3OneChordChordBox";
			this->P3OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P3OneChordChordBox->TabIndex = 8;
			this->P3OneChordChordBox->Text = L"M";
			// 
			// P3OneChordModeUpDown
			// 
			this->P3OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P3OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P3OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P3OneChordModeUpDown->Name = L"P3OneChordModeUpDown";
			this->P3OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P3OneChordModeUpDown->TabIndex = 7;
			this->P3OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label19
			// 
			this->label19->AutoSize = true;
			this->label19->Location = System::Drawing::Point(14, 44);
			this->label19->Name = L"label19";
			this->label19->Size = System::Drawing::Size(32, 12);
			this->label19->TabIndex = 2;
			this->label19->Text = L"Mode";
			// 
			// label20
			// 
			this->label20->AutoSize = true;
			this->label20->Location = System::Drawing::Point(6, 18);
			this->label20->Name = L"label20";
			this->label20->Size = System::Drawing::Size(52, 12);
			this->label20->TabIndex = 0;
			this->label20->Text = L"Reference";
			// 
			// groupBox14
			// 
			this->groupBox14->Controls->Add(this->P3OneSndMuteBtn);
			this->groupBox14->Controls->Add(this->P3OneSndSendBtn);
			this->groupBox14->Controls->Add(this->P3OneSndPitchUpDown);
			this->groupBox14->Controls->Add(this->label22);
			this->groupBox14->Location = System::Drawing::Point(7, 145);
			this->groupBox14->Name = L"groupBox14";
			this->groupBox14->Size = System::Drawing::Size(228, 52);
			this->groupBox14->TabIndex = 12;
			this->groupBox14->TabStop = false;
			this->groupBox14->Text = L"Play one sound";
			// 
			// P3OneSndMuteBtn
			// 
			this->P3OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P3OneSndMuteBtn->Name = L"P3OneSndMuteBtn";
			this->P3OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P3OneSndMuteBtn->TabIndex = 7;
			this->P3OneSndMuteBtn->Text = L"Mute";
			this->P3OneSndMuteBtn->UseVisualStyleBackColor = true;
			this->P3OneSndMuteBtn->Click += gcnew System::EventHandler(this, &Form1::P3OneSndMuteBtn_Click);
			// 
			// P3OneSndSendBtn
			// 
			this->P3OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P3OneSndSendBtn->Name = L"P3OneSndSendBtn";
			this->P3OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P3OneSndSendBtn->TabIndex = 6;
			this->P3OneSndSendBtn->Text = L"Send";
			this->P3OneSndSendBtn->UseVisualStyleBackColor = true;
			this->P3OneSndSendBtn->Click += gcnew System::EventHandler(this, &Form1::P3OneSndSendBtn_Click);
			// 
			// P3OneSndPitchUpDown
			// 
			this->P3OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P3OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P3OneSndPitchUpDown->Name = L"P3OneSndPitchUpDown";
			this->P3OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P3OneSndPitchUpDown->TabIndex = 5;
			this->P3OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label22
			// 
			this->label22->AutoSize = true;
			this->label22->Location = System::Drawing::Point(6, 22);
			this->label22->Name = L"label22";
			this->label22->Size = System::Drawing::Size(28, 12);
			this->label22->TabIndex = 1;
			this->label22->Text = L"Pitch";
			// 
			// tabPage4
			// 
			this->tabPage4->Controls->Add(this->groupBox15);
			this->tabPage4->Controls->Add(this->groupBox16);
			this->tabPage4->Controls->Add(this->groupBox17);
			this->tabPage4->Controls->Add(this->groupBox18);
			this->tabPage4->Location = System::Drawing::Point(4, 22);
			this->tabPage4->Name = L"tabPage4";
			this->tabPage4->Padding = System::Windows::Forms::Padding(3);
			this->tabPage4->Size = System::Drawing::Size(251, 314);
			this->tabPage4->TabIndex = 3;
			this->tabPage4->Text = L"Port 4";
			this->tabPage4->UseVisualStyleBackColor = true;
			// 
			// groupBox15
			// 
			this->groupBox15->Controls->Add(this->P4VolUpDown);
			this->groupBox15->Controls->Add(this->P4VolBar);
			this->groupBox15->Location = System::Drawing::Point(7, 8);
			this->groupBox15->Name = L"groupBox15";
			this->groupBox15->Size = System::Drawing::Size(228, 69);
			this->groupBox15->TabIndex = 15;
			this->groupBox15->TabStop = false;
			this->groupBox15->Text = L"Volume";
			// 
			// P4VolUpDown
			// 
			this->P4VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P4VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P4VolUpDown->Name = L"P4VolUpDown";
			this->P4VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P4VolUpDown->TabIndex = 16;
			this->P4VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P4VolBar
			// 
			this->P4VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P4VolBar->Location = System::Drawing::Point(53, 16);
			this->P4VolBar->Maximum = 127;
			this->P4VolBar->Name = L"P4VolBar";
			this->P4VolBar->Size = System::Drawing::Size(164, 45);
			this->P4VolBar->TabIndex = 14;
			this->P4VolBar->Value = 100;
			this->P4VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P4VolBar_ValueChanged);
			// 
			// groupBox16
			// 
			this->groupBox16->Controls->Add(this->P4InstrumentChangeBtn);
			this->groupBox16->Controls->Add(this->P4OneSndInstUpDown);
			this->groupBox16->Controls->Add(this->label23);
			this->groupBox16->Location = System::Drawing::Point(7, 83);
			this->groupBox16->Name = L"groupBox16";
			this->groupBox16->Size = System::Drawing::Size(228, 56);
			this->groupBox16->TabIndex = 14;
			this->groupBox16->TabStop = false;
			this->groupBox16->Text = L"Instrument Select";
			// 
			// P4InstrumentChangeBtn
			// 
			this->P4InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P4InstrumentChangeBtn->Name = L"P4InstrumentChangeBtn";
			this->P4InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P4InstrumentChangeBtn->TabIndex = 7;
			this->P4InstrumentChangeBtn->Text = L"Change";
			this->P4InstrumentChangeBtn->UseVisualStyleBackColor = true;
			this->P4InstrumentChangeBtn->Click += gcnew System::EventHandler(this, &Form1::P4InstrumentChangeBtn_Click);
			// 
			// P4OneSndInstUpDown
			// 
			this->P4OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P4OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P4OneSndInstUpDown->Name = L"P4OneSndInstUpDown";
			this->P4OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P4OneSndInstUpDown->TabIndex = 6;
			// 
			// label23
			// 
			this->label23->AutoSize = true;
			this->label23->Location = System::Drawing::Point(6, 24);
			this->label23->Name = L"label23";
			this->label23->Size = System::Drawing::Size(55, 12);
			this->label23->TabIndex = 5;
			this->label23->Text = L"Instrument";
			// 
			// groupBox17
			// 
			this->groupBox17->Controls->Add(this->P4OneChordReferenceUpDown);
			this->groupBox17->Controls->Add(this->P4OneChordMuteBtn);
			this->groupBox17->Controls->Add(this->P4OneChordSendBtn);
			this->groupBox17->Controls->Add(this->label25);
			this->groupBox17->Controls->Add(this->P4OneChordChordBox);
			this->groupBox17->Controls->Add(this->P4OneChordModeUpDown);
			this->groupBox17->Controls->Add(this->label26);
			this->groupBox17->Controls->Add(this->label27);
			this->groupBox17->Location = System::Drawing::Point(7, 203);
			this->groupBox17->Name = L"groupBox17";
			this->groupBox17->Size = System::Drawing::Size(228, 100);
			this->groupBox17->TabIndex = 13;
			this->groupBox17->TabStop = false;
			this->groupBox17->Text = L"Play one chord";
			// 
			// P4OneChordReferenceUpDown
			// 
			this->P4OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P4OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P4OneChordReferenceUpDown->Name = L"P4OneChordReferenceUpDown";
			this->P4OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P4OneChordReferenceUpDown->TabIndex = 12;
			this->P4OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P4OneChordMuteBtn
			// 
			this->P4OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P4OneChordMuteBtn->Name = L"P4OneChordMuteBtn";
			this->P4OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P4OneChordMuteBtn->TabIndex = 11;
			this->P4OneChordMuteBtn->Text = L"Mute";
			this->P4OneChordMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P4OneChordSendBtn
			// 
			this->P4OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P4OneChordSendBtn->Name = L"P4OneChordSendBtn";
			this->P4OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P4OneChordSendBtn->TabIndex = 10;
			this->P4OneChordSendBtn->Text = L"Send";
			this->P4OneChordSendBtn->UseVisualStyleBackColor = true;
			// 
			// label25
			// 
			this->label25->AutoSize = true;
			this->label25->Location = System::Drawing::Point(14, 72);
			this->label25->Name = L"label25";
			this->label25->Size = System::Drawing::Size(35, 12);
			this->label25->TabIndex = 9;
			this->label25->Text = L"Chord";
			// 
			// P4OneChordChordBox
			// 
			this->P4OneChordChordBox->FormattingEnabled = true;
			this->P4OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P4OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P4OneChordChordBox->Name = L"P4OneChordChordBox";
			this->P4OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P4OneChordChordBox->TabIndex = 8;
			this->P4OneChordChordBox->Text = L"M";
			// 
			// P4OneChordModeUpDown
			// 
			this->P4OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P4OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P4OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P4OneChordModeUpDown->Name = L"P4OneChordModeUpDown";
			this->P4OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P4OneChordModeUpDown->TabIndex = 7;
			this->P4OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label26
			// 
			this->label26->AutoSize = true;
			this->label26->Location = System::Drawing::Point(14, 44);
			this->label26->Name = L"label26";
			this->label26->Size = System::Drawing::Size(32, 12);
			this->label26->TabIndex = 2;
			this->label26->Text = L"Mode";
			// 
			// label27
			// 
			this->label27->AutoSize = true;
			this->label27->Location = System::Drawing::Point(6, 18);
			this->label27->Name = L"label27";
			this->label27->Size = System::Drawing::Size(52, 12);
			this->label27->TabIndex = 0;
			this->label27->Text = L"Reference";
			// 
			// groupBox18
			// 
			this->groupBox18->Controls->Add(this->P4OneSndMuteBtn);
			this->groupBox18->Controls->Add(this->P4OneSndSendBtn);
			this->groupBox18->Controls->Add(this->P4OneSndPitchUpDown);
			this->groupBox18->Controls->Add(this->label29);
			this->groupBox18->Location = System::Drawing::Point(7, 145);
			this->groupBox18->Name = L"groupBox18";
			this->groupBox18->Size = System::Drawing::Size(228, 52);
			this->groupBox18->TabIndex = 12;
			this->groupBox18->TabStop = false;
			this->groupBox18->Text = L"Play one sound";
			// 
			// P4OneSndMuteBtn
			// 
			this->P4OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P4OneSndMuteBtn->Name = L"P4OneSndMuteBtn";
			this->P4OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P4OneSndMuteBtn->TabIndex = 7;
			this->P4OneSndMuteBtn->Text = L"Mute";
			this->P4OneSndMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P4OneSndSendBtn
			// 
			this->P4OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P4OneSndSendBtn->Name = L"P4OneSndSendBtn";
			this->P4OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P4OneSndSendBtn->TabIndex = 6;
			this->P4OneSndSendBtn->Text = L"Send";
			this->P4OneSndSendBtn->UseVisualStyleBackColor = true;
			// 
			// P4OneSndPitchUpDown
			// 
			this->P4OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P4OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P4OneSndPitchUpDown->Name = L"P4OneSndPitchUpDown";
			this->P4OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P4OneSndPitchUpDown->TabIndex = 5;
			this->P4OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label29
			// 
			this->label29->AutoSize = true;
			this->label29->Location = System::Drawing::Point(6, 22);
			this->label29->Name = L"label29";
			this->label29->Size = System::Drawing::Size(28, 12);
			this->label29->TabIndex = 1;
			this->label29->Text = L"Pitch";
			// 
			// tabPage5
			// 
			this->tabPage5->Controls->Add(this->groupBox19);
			this->tabPage5->Controls->Add(this->groupBox20);
			this->tabPage5->Controls->Add(this->groupBox21);
			this->tabPage5->Controls->Add(this->groupBox22);
			this->tabPage5->Location = System::Drawing::Point(4, 22);
			this->tabPage5->Name = L"tabPage5";
			this->tabPage5->Padding = System::Windows::Forms::Padding(3);
			this->tabPage5->Size = System::Drawing::Size(251, 314);
			this->tabPage5->TabIndex = 4;
			this->tabPage5->Text = L"Port 5";
			this->tabPage5->UseVisualStyleBackColor = true;
			// 
			// groupBox19
			// 
			this->groupBox19->Controls->Add(this->P5VolUpDown);
			this->groupBox19->Controls->Add(this->P5VolBar);
			this->groupBox19->Location = System::Drawing::Point(7, 8);
			this->groupBox19->Name = L"groupBox19";
			this->groupBox19->Size = System::Drawing::Size(228, 69);
			this->groupBox19->TabIndex = 15;
			this->groupBox19->TabStop = false;
			this->groupBox19->Text = L"Volume";
			// 
			// P5VolUpDown
			// 
			this->P5VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P5VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P5VolUpDown->Name = L"P5VolUpDown";
			this->P5VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P5VolUpDown->TabIndex = 16;
			this->P5VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P5VolBar
			// 
			this->P5VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P5VolBar->Location = System::Drawing::Point(53, 16);
			this->P5VolBar->Maximum = 127;
			this->P5VolBar->Name = L"P5VolBar";
			this->P5VolBar->Size = System::Drawing::Size(164, 45);
			this->P5VolBar->TabIndex = 14;
			this->P5VolBar->Value = 100;
			this->P5VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P5VolBar_ValueChanged);
			// 
			// groupBox20
			// 
			this->groupBox20->Controls->Add(this->P5InstrumentChangeBtn);
			this->groupBox20->Controls->Add(this->P5OneSndInstUpDown);
			this->groupBox20->Controls->Add(this->label30);
			this->groupBox20->Location = System::Drawing::Point(7, 83);
			this->groupBox20->Name = L"groupBox20";
			this->groupBox20->Size = System::Drawing::Size(228, 56);
			this->groupBox20->TabIndex = 14;
			this->groupBox20->TabStop = false;
			this->groupBox20->Text = L"Instrument Select";
			// 
			// P5InstrumentChangeBtn
			// 
			this->P5InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P5InstrumentChangeBtn->Name = L"P5InstrumentChangeBtn";
			this->P5InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P5InstrumentChangeBtn->TabIndex = 7;
			this->P5InstrumentChangeBtn->Text = L"Change";
			this->P5InstrumentChangeBtn->UseVisualStyleBackColor = true;
			// 
			// P5OneSndInstUpDown
			// 
			this->P5OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P5OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P5OneSndInstUpDown->Name = L"P5OneSndInstUpDown";
			this->P5OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P5OneSndInstUpDown->TabIndex = 6;
			// 
			// label30
			// 
			this->label30->AutoSize = true;
			this->label30->Location = System::Drawing::Point(6, 24);
			this->label30->Name = L"label30";
			this->label30->Size = System::Drawing::Size(55, 12);
			this->label30->TabIndex = 5;
			this->label30->Text = L"Instrument";
			// 
			// groupBox21
			// 
			this->groupBox21->Controls->Add(this->P5OneChordReferenceUpDown);
			this->groupBox21->Controls->Add(this->P5OneChordMuteBtn);
			this->groupBox21->Controls->Add(this->P5OneChordSendBtn);
			this->groupBox21->Controls->Add(this->label32);
			this->groupBox21->Controls->Add(this->P5OneChordChordBox);
			this->groupBox21->Controls->Add(this->P5OneChordModeUpDown);
			this->groupBox21->Controls->Add(this->label33);
			this->groupBox21->Controls->Add(this->label34);
			this->groupBox21->Location = System::Drawing::Point(7, 203);
			this->groupBox21->Name = L"groupBox21";
			this->groupBox21->Size = System::Drawing::Size(228, 100);
			this->groupBox21->TabIndex = 13;
			this->groupBox21->TabStop = false;
			this->groupBox21->Text = L"Play one chord";
			// 
			// P5OneChordReferenceUpDown
			// 
			this->P5OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P5OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P5OneChordReferenceUpDown->Name = L"P5OneChordReferenceUpDown";
			this->P5OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P5OneChordReferenceUpDown->TabIndex = 12;
			this->P5OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P5OneChordMuteBtn
			// 
			this->P5OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P5OneChordMuteBtn->Name = L"P5OneChordMuteBtn";
			this->P5OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P5OneChordMuteBtn->TabIndex = 11;
			this->P5OneChordMuteBtn->Text = L"Mute";
			this->P5OneChordMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P5OneChordSendBtn
			// 
			this->P5OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P5OneChordSendBtn->Name = L"P5OneChordSendBtn";
			this->P5OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P5OneChordSendBtn->TabIndex = 10;
			this->P5OneChordSendBtn->Text = L"Send";
			this->P5OneChordSendBtn->UseVisualStyleBackColor = true;
			// 
			// label32
			// 
			this->label32->AutoSize = true;
			this->label32->Location = System::Drawing::Point(14, 72);
			this->label32->Name = L"label32";
			this->label32->Size = System::Drawing::Size(35, 12);
			this->label32->TabIndex = 9;
			this->label32->Text = L"Chord";
			// 
			// P5OneChordChordBox
			// 
			this->P5OneChordChordBox->FormattingEnabled = true;
			this->P5OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P5OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P5OneChordChordBox->Name = L"P5OneChordChordBox";
			this->P5OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P5OneChordChordBox->TabIndex = 8;
			this->P5OneChordChordBox->Text = L"M";
			// 
			// P5OneChordModeUpDown
			// 
			this->P5OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P5OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P5OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P5OneChordModeUpDown->Name = L"P5OneChordModeUpDown";
			this->P5OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P5OneChordModeUpDown->TabIndex = 7;
			this->P5OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label33
			// 
			this->label33->AutoSize = true;
			this->label33->Location = System::Drawing::Point(14, 44);
			this->label33->Name = L"label33";
			this->label33->Size = System::Drawing::Size(32, 12);
			this->label33->TabIndex = 2;
			this->label33->Text = L"Mode";
			// 
			// label34
			// 
			this->label34->AutoSize = true;
			this->label34->Location = System::Drawing::Point(6, 18);
			this->label34->Name = L"label34";
			this->label34->Size = System::Drawing::Size(52, 12);
			this->label34->TabIndex = 0;
			this->label34->Text = L"Reference";
			// 
			// groupBox22
			// 
			this->groupBox22->Controls->Add(this->P5OneSndMuteBtn);
			this->groupBox22->Controls->Add(this->P5OneSndSendBtn);
			this->groupBox22->Controls->Add(this->P5OneSndPitchUpDown);
			this->groupBox22->Controls->Add(this->label36);
			this->groupBox22->Location = System::Drawing::Point(7, 145);
			this->groupBox22->Name = L"groupBox22";
			this->groupBox22->Size = System::Drawing::Size(228, 52);
			this->groupBox22->TabIndex = 12;
			this->groupBox22->TabStop = false;
			this->groupBox22->Text = L"Play one sound";
			// 
			// P5OneSndMuteBtn
			// 
			this->P5OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P5OneSndMuteBtn->Name = L"P5OneSndMuteBtn";
			this->P5OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P5OneSndMuteBtn->TabIndex = 7;
			this->P5OneSndMuteBtn->Text = L"Mute";
			this->P5OneSndMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P5OneSndSendBtn
			// 
			this->P5OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P5OneSndSendBtn->Name = L"P5OneSndSendBtn";
			this->P5OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P5OneSndSendBtn->TabIndex = 6;
			this->P5OneSndSendBtn->Text = L"Send";
			this->P5OneSndSendBtn->UseVisualStyleBackColor = true;
			// 
			// P5OneSndPitchUpDown
			// 
			this->P5OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P5OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P5OneSndPitchUpDown->Name = L"P5OneSndPitchUpDown";
			this->P5OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P5OneSndPitchUpDown->TabIndex = 5;
			this->P5OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label36
			// 
			this->label36->AutoSize = true;
			this->label36->Location = System::Drawing::Point(6, 22);
			this->label36->Name = L"label36";
			this->label36->Size = System::Drawing::Size(28, 12);
			this->label36->TabIndex = 1;
			this->label36->Text = L"Pitch";
			// 
			// tabPage6
			// 
			this->tabPage6->Controls->Add(this->groupBox23);
			this->tabPage6->Controls->Add(this->groupBox24);
			this->tabPage6->Controls->Add(this->groupBox25);
			this->tabPage6->Controls->Add(this->groupBox26);
			this->tabPage6->Location = System::Drawing::Point(4, 22);
			this->tabPage6->Name = L"tabPage6";
			this->tabPage6->Padding = System::Windows::Forms::Padding(3);
			this->tabPage6->Size = System::Drawing::Size(251, 314);
			this->tabPage6->TabIndex = 5;
			this->tabPage6->Text = L"Port 6";
			this->tabPage6->UseVisualStyleBackColor = true;
			// 
			// groupBox23
			// 
			this->groupBox23->Controls->Add(this->P6VolUpDown);
			this->groupBox23->Controls->Add(this->P6VolBar);
			this->groupBox23->Location = System::Drawing::Point(7, 8);
			this->groupBox23->Name = L"groupBox23";
			this->groupBox23->Size = System::Drawing::Size(228, 69);
			this->groupBox23->TabIndex = 15;
			this->groupBox23->TabStop = false;
			this->groupBox23->Text = L"Volume";
			// 
			// P6VolUpDown
			// 
			this->P6VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P6VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P6VolUpDown->Name = L"P6VolUpDown";
			this->P6VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P6VolUpDown->TabIndex = 16;
			this->P6VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P6VolBar
			// 
			this->P6VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P6VolBar->Location = System::Drawing::Point(53, 16);
			this->P6VolBar->Maximum = 127;
			this->P6VolBar->Name = L"P6VolBar";
			this->P6VolBar->Size = System::Drawing::Size(164, 45);
			this->P6VolBar->TabIndex = 14;
			this->P6VolBar->Value = 100;
			this->P6VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P6VolBar_ValueChanged);
			// 
			// groupBox24
			// 
			this->groupBox24->Controls->Add(this->P6InstrumentChangeBtn);
			this->groupBox24->Controls->Add(this->P6OneSndInstUpDown);
			this->groupBox24->Controls->Add(this->label37);
			this->groupBox24->Location = System::Drawing::Point(7, 83);
			this->groupBox24->Name = L"groupBox24";
			this->groupBox24->Size = System::Drawing::Size(228, 56);
			this->groupBox24->TabIndex = 14;
			this->groupBox24->TabStop = false;
			this->groupBox24->Text = L"Instrument Select";
			// 
			// P6InstrumentChangeBtn
			// 
			this->P6InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P6InstrumentChangeBtn->Name = L"P6InstrumentChangeBtn";
			this->P6InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P6InstrumentChangeBtn->TabIndex = 7;
			this->P6InstrumentChangeBtn->Text = L"Change";
			this->P6InstrumentChangeBtn->UseVisualStyleBackColor = true;
			// 
			// P6OneSndInstUpDown
			// 
			this->P6OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P6OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P6OneSndInstUpDown->Name = L"P6OneSndInstUpDown";
			this->P6OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P6OneSndInstUpDown->TabIndex = 6;
			// 
			// label37
			// 
			this->label37->AutoSize = true;
			this->label37->Location = System::Drawing::Point(6, 24);
			this->label37->Name = L"label37";
			this->label37->Size = System::Drawing::Size(55, 12);
			this->label37->TabIndex = 5;
			this->label37->Text = L"Instrument";
			// 
			// groupBox25
			// 
			this->groupBox25->Controls->Add(this->P6OneChordReferenceUpDown);
			this->groupBox25->Controls->Add(this->P6OneChordMuteBtn);
			this->groupBox25->Controls->Add(this->P6OneChordSendBtn);
			this->groupBox25->Controls->Add(this->label39);
			this->groupBox25->Controls->Add(this->P6OneChordChordBox);
			this->groupBox25->Controls->Add(this->P6OneChordModeUpDown);
			this->groupBox25->Controls->Add(this->label40);
			this->groupBox25->Controls->Add(this->label41);
			this->groupBox25->Location = System::Drawing::Point(7, 203);
			this->groupBox25->Name = L"groupBox25";
			this->groupBox25->Size = System::Drawing::Size(228, 100);
			this->groupBox25->TabIndex = 13;
			this->groupBox25->TabStop = false;
			this->groupBox25->Text = L"Play one chord";
			// 
			// P6OneChordReferenceUpDown
			// 
			this->P6OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P6OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P6OneChordReferenceUpDown->Name = L"P6OneChordReferenceUpDown";
			this->P6OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P6OneChordReferenceUpDown->TabIndex = 12;
			this->P6OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P6OneChordMuteBtn
			// 
			this->P6OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P6OneChordMuteBtn->Name = L"P6OneChordMuteBtn";
			this->P6OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P6OneChordMuteBtn->TabIndex = 11;
			this->P6OneChordMuteBtn->Text = L"Mute";
			this->P6OneChordMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P6OneChordSendBtn
			// 
			this->P6OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P6OneChordSendBtn->Name = L"P6OneChordSendBtn";
			this->P6OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P6OneChordSendBtn->TabIndex = 10;
			this->P6OneChordSendBtn->Text = L"Send";
			this->P6OneChordSendBtn->UseVisualStyleBackColor = true;
			// 
			// label39
			// 
			this->label39->AutoSize = true;
			this->label39->Location = System::Drawing::Point(14, 72);
			this->label39->Name = L"label39";
			this->label39->Size = System::Drawing::Size(35, 12);
			this->label39->TabIndex = 9;
			this->label39->Text = L"Chord";
			// 
			// P6OneChordChordBox
			// 
			this->P6OneChordChordBox->FormattingEnabled = true;
			this->P6OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P6OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P6OneChordChordBox->Name = L"P6OneChordChordBox";
			this->P6OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P6OneChordChordBox->TabIndex = 8;
			this->P6OneChordChordBox->Text = L"M";
			// 
			// P6OneChordModeUpDown
			// 
			this->P6OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P6OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P6OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P6OneChordModeUpDown->Name = L"P6OneChordModeUpDown";
			this->P6OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P6OneChordModeUpDown->TabIndex = 7;
			this->P6OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label40
			// 
			this->label40->AutoSize = true;
			this->label40->Location = System::Drawing::Point(14, 44);
			this->label40->Name = L"label40";
			this->label40->Size = System::Drawing::Size(32, 12);
			this->label40->TabIndex = 2;
			this->label40->Text = L"Mode";
			// 
			// label41
			// 
			this->label41->AutoSize = true;
			this->label41->Location = System::Drawing::Point(6, 18);
			this->label41->Name = L"label41";
			this->label41->Size = System::Drawing::Size(52, 12);
			this->label41->TabIndex = 0;
			this->label41->Text = L"Reference";
			// 
			// groupBox26
			// 
			this->groupBox26->Controls->Add(this->P6OneSndMuteBtn);
			this->groupBox26->Controls->Add(this->P6OneSndSendBtn);
			this->groupBox26->Controls->Add(this->P6OneSndPitchUpDown);
			this->groupBox26->Controls->Add(this->label43);
			this->groupBox26->Location = System::Drawing::Point(7, 145);
			this->groupBox26->Name = L"groupBox26";
			this->groupBox26->Size = System::Drawing::Size(228, 52);
			this->groupBox26->TabIndex = 12;
			this->groupBox26->TabStop = false;
			this->groupBox26->Text = L"Play one sound";
			// 
			// P6OneSndMuteBtn
			// 
			this->P6OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P6OneSndMuteBtn->Name = L"P6OneSndMuteBtn";
			this->P6OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P6OneSndMuteBtn->TabIndex = 7;
			this->P6OneSndMuteBtn->Text = L"Mute";
			this->P6OneSndMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P6OneSndSendBtn
			// 
			this->P6OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P6OneSndSendBtn->Name = L"P6OneSndSendBtn";
			this->P6OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P6OneSndSendBtn->TabIndex = 6;
			this->P6OneSndSendBtn->Text = L"Send";
			this->P6OneSndSendBtn->UseVisualStyleBackColor = true;
			// 
			// P6OneSndPitchUpDown
			// 
			this->P6OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P6OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P6OneSndPitchUpDown->Name = L"P6OneSndPitchUpDown";
			this->P6OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P6OneSndPitchUpDown->TabIndex = 5;
			this->P6OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label43
			// 
			this->label43->AutoSize = true;
			this->label43->Location = System::Drawing::Point(6, 22);
			this->label43->Name = L"label43";
			this->label43->Size = System::Drawing::Size(28, 12);
			this->label43->TabIndex = 1;
			this->label43->Text = L"Pitch";
			// 
			// tabPage7
			// 
			this->tabPage7->Controls->Add(this->groupBox27);
			this->tabPage7->Controls->Add(this->groupBox28);
			this->tabPage7->Controls->Add(this->groupBox29);
			this->tabPage7->Controls->Add(this->groupBox30);
			this->tabPage7->Location = System::Drawing::Point(4, 22);
			this->tabPage7->Name = L"tabPage7";
			this->tabPage7->Padding = System::Windows::Forms::Padding(3);
			this->tabPage7->Size = System::Drawing::Size(251, 314);
			this->tabPage7->TabIndex = 6;
			this->tabPage7->Text = L"Port 7";
			this->tabPage7->UseVisualStyleBackColor = true;
			// 
			// groupBox27
			// 
			this->groupBox27->Controls->Add(this->P7VolUpDown);
			this->groupBox27->Controls->Add(this->P7VolBar);
			this->groupBox27->Location = System::Drawing::Point(7, 8);
			this->groupBox27->Name = L"groupBox27";
			this->groupBox27->Size = System::Drawing::Size(228, 69);
			this->groupBox27->TabIndex = 15;
			this->groupBox27->TabStop = false;
			this->groupBox27->Text = L"Volume";
			// 
			// P7VolUpDown
			// 
			this->P7VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P7VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P7VolUpDown->Name = L"P7VolUpDown";
			this->P7VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P7VolUpDown->TabIndex = 16;
			this->P7VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P7VolBar
			// 
			this->P7VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P7VolBar->Location = System::Drawing::Point(53, 16);
			this->P7VolBar->Maximum = 127;
			this->P7VolBar->Name = L"P7VolBar";
			this->P7VolBar->Size = System::Drawing::Size(164, 45);
			this->P7VolBar->TabIndex = 14;
			this->P7VolBar->Value = 100;
			this->P7VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P7VolBar_ValueChanged);
			// 
			// groupBox28
			// 
			this->groupBox28->Controls->Add(this->P7InstrumentChangeBtn);
			this->groupBox28->Controls->Add(this->P7OneSndInstUpDown);
			this->groupBox28->Controls->Add(this->label44);
			this->groupBox28->Location = System::Drawing::Point(7, 83);
			this->groupBox28->Name = L"groupBox28";
			this->groupBox28->Size = System::Drawing::Size(228, 56);
			this->groupBox28->TabIndex = 14;
			this->groupBox28->TabStop = false;
			this->groupBox28->Text = L"Instrument Select";
			// 
			// P7InstrumentChangeBtn
			// 
			this->P7InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P7InstrumentChangeBtn->Name = L"P7InstrumentChangeBtn";
			this->P7InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P7InstrumentChangeBtn->TabIndex = 7;
			this->P7InstrumentChangeBtn->Text = L"Change";
			this->P7InstrumentChangeBtn->UseVisualStyleBackColor = true;
			// 
			// P7OneSndInstUpDown
			// 
			this->P7OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P7OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P7OneSndInstUpDown->Name = L"P7OneSndInstUpDown";
			this->P7OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P7OneSndInstUpDown->TabIndex = 6;
			// 
			// label44
			// 
			this->label44->AutoSize = true;
			this->label44->Location = System::Drawing::Point(6, 24);
			this->label44->Name = L"label44";
			this->label44->Size = System::Drawing::Size(55, 12);
			this->label44->TabIndex = 5;
			this->label44->Text = L"Instrument";
			// 
			// groupBox29
			// 
			this->groupBox29->Controls->Add(this->P7OneChordReferenceUpDown);
			this->groupBox29->Controls->Add(this->P7OneChordMuteBtn);
			this->groupBox29->Controls->Add(this->P7OneChordSendBtn);
			this->groupBox29->Controls->Add(this->label46);
			this->groupBox29->Controls->Add(this->P7OneChordChordBox);
			this->groupBox29->Controls->Add(this->P7OneChordModeUpDown);
			this->groupBox29->Controls->Add(this->label47);
			this->groupBox29->Controls->Add(this->label48);
			this->groupBox29->Location = System::Drawing::Point(7, 203);
			this->groupBox29->Name = L"groupBox29";
			this->groupBox29->Size = System::Drawing::Size(228, 100);
			this->groupBox29->TabIndex = 13;
			this->groupBox29->TabStop = false;
			this->groupBox29->Text = L"Play one chord";
			// 
			// P7OneChordReferenceUpDown
			// 
			this->P7OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P7OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P7OneChordReferenceUpDown->Name = L"P7OneChordReferenceUpDown";
			this->P7OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P7OneChordReferenceUpDown->TabIndex = 12;
			this->P7OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P7OneChordMuteBtn
			// 
			this->P7OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P7OneChordMuteBtn->Name = L"P7OneChordMuteBtn";
			this->P7OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P7OneChordMuteBtn->TabIndex = 11;
			this->P7OneChordMuteBtn->Text = L"Mute";
			this->P7OneChordMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P7OneChordSendBtn
			// 
			this->P7OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P7OneChordSendBtn->Name = L"P7OneChordSendBtn";
			this->P7OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P7OneChordSendBtn->TabIndex = 10;
			this->P7OneChordSendBtn->Text = L"Send";
			this->P7OneChordSendBtn->UseVisualStyleBackColor = true;
			// 
			// label46
			// 
			this->label46->AutoSize = true;
			this->label46->Location = System::Drawing::Point(14, 72);
			this->label46->Name = L"label46";
			this->label46->Size = System::Drawing::Size(35, 12);
			this->label46->TabIndex = 9;
			this->label46->Text = L"Chord";
			// 
			// P7OneChordChordBox
			// 
			this->P7OneChordChordBox->FormattingEnabled = true;
			this->P7OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P7OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P7OneChordChordBox->Name = L"P7OneChordChordBox";
			this->P7OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P7OneChordChordBox->TabIndex = 8;
			this->P7OneChordChordBox->Text = L"M";
			// 
			// P7OneChordModeUpDown
			// 
			this->P7OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P7OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P7OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P7OneChordModeUpDown->Name = L"P7OneChordModeUpDown";
			this->P7OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P7OneChordModeUpDown->TabIndex = 7;
			this->P7OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label47
			// 
			this->label47->AutoSize = true;
			this->label47->Location = System::Drawing::Point(14, 44);
			this->label47->Name = L"label47";
			this->label47->Size = System::Drawing::Size(32, 12);
			this->label47->TabIndex = 2;
			this->label47->Text = L"Mode";
			// 
			// label48
			// 
			this->label48->AutoSize = true;
			this->label48->Location = System::Drawing::Point(6, 18);
			this->label48->Name = L"label48";
			this->label48->Size = System::Drawing::Size(52, 12);
			this->label48->TabIndex = 0;
			this->label48->Text = L"Reference";
			// 
			// groupBox30
			// 
			this->groupBox30->Controls->Add(this->P7OneSndMuteBtn);
			this->groupBox30->Controls->Add(this->P7OneSndSendBtn);
			this->groupBox30->Controls->Add(this->P7OneSndPitchUpDown);
			this->groupBox30->Controls->Add(this->label50);
			this->groupBox30->Location = System::Drawing::Point(7, 145);
			this->groupBox30->Name = L"groupBox30";
			this->groupBox30->Size = System::Drawing::Size(228, 52);
			this->groupBox30->TabIndex = 12;
			this->groupBox30->TabStop = false;
			this->groupBox30->Text = L"Play one sound";
			// 
			// P7OneSndMuteBtn
			// 
			this->P7OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P7OneSndMuteBtn->Name = L"P7OneSndMuteBtn";
			this->P7OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P7OneSndMuteBtn->TabIndex = 7;
			this->P7OneSndMuteBtn->Text = L"Mute";
			this->P7OneSndMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P7OneSndSendBtn
			// 
			this->P7OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P7OneSndSendBtn->Name = L"P7OneSndSendBtn";
			this->P7OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P7OneSndSendBtn->TabIndex = 6;
			this->P7OneSndSendBtn->Text = L"Send";
			this->P7OneSndSendBtn->UseVisualStyleBackColor = true;
			// 
			// P7OneSndPitchUpDown
			// 
			this->P7OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P7OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P7OneSndPitchUpDown->Name = L"P7OneSndPitchUpDown";
			this->P7OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P7OneSndPitchUpDown->TabIndex = 5;
			this->P7OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label50
			// 
			this->label50->AutoSize = true;
			this->label50->Location = System::Drawing::Point(6, 22);
			this->label50->Name = L"label50";
			this->label50->Size = System::Drawing::Size(28, 12);
			this->label50->TabIndex = 1;
			this->label50->Text = L"Pitch";
			// 
			// tabPage8
			// 
			this->tabPage8->Controls->Add(this->groupBox31);
			this->tabPage8->Controls->Add(this->groupBox32);
			this->tabPage8->Controls->Add(this->groupBox33);
			this->tabPage8->Controls->Add(this->groupBox34);
			this->tabPage8->Location = System::Drawing::Point(4, 22);
			this->tabPage8->Name = L"tabPage8";
			this->tabPage8->Padding = System::Windows::Forms::Padding(3);
			this->tabPage8->Size = System::Drawing::Size(251, 314);
			this->tabPage8->TabIndex = 7;
			this->tabPage8->Text = L"Port 8";
			this->tabPage8->UseVisualStyleBackColor = true;
			// 
			// groupBox31
			// 
			this->groupBox31->Controls->Add(this->P8VolUpDown);
			this->groupBox31->Controls->Add(this->P8VolBar);
			this->groupBox31->Location = System::Drawing::Point(7, 8);
			this->groupBox31->Name = L"groupBox31";
			this->groupBox31->Size = System::Drawing::Size(228, 69);
			this->groupBox31->TabIndex = 15;
			this->groupBox31->TabStop = false;
			this->groupBox31->Text = L"Volume";
			// 
			// P8VolUpDown
			// 
			this->P8VolUpDown->Location = System::Drawing::Point(7, 24);
			this->P8VolUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P8VolUpDown->Name = L"P8VolUpDown";
			this->P8VolUpDown->Size = System::Drawing::Size(42, 22);
			this->P8VolUpDown->TabIndex = 15;
			this->P8VolUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {100, 0, 0, 0});
			// 
			// P8VolBar
			// 
			this->P8VolBar->BackColor = System::Drawing::SystemColors::ButtonHighlight;
			this->P8VolBar->Location = System::Drawing::Point(53, 16);
			this->P8VolBar->Maximum = 127;
			this->P8VolBar->Name = L"P8VolBar";
			this->P8VolBar->Size = System::Drawing::Size(164, 45);
			this->P8VolBar->TabIndex = 14;
			this->P8VolBar->Value = 100;
			this->P8VolBar->ValueChanged += gcnew System::EventHandler(this, &Form1::P8VolBar_ValueChanged);
			// 
			// groupBox32
			// 
			this->groupBox32->Controls->Add(this->P8InstrumentChangeBtn);
			this->groupBox32->Controls->Add(this->P8OneSndInstUpDown);
			this->groupBox32->Controls->Add(this->label51);
			this->groupBox32->Location = System::Drawing::Point(7, 83);
			this->groupBox32->Name = L"groupBox32";
			this->groupBox32->Size = System::Drawing::Size(228, 56);
			this->groupBox32->TabIndex = 14;
			this->groupBox32->TabStop = false;
			this->groupBox32->Text = L"Instrument Select";
			// 
			// P8InstrumentChangeBtn
			// 
			this->P8InstrumentChangeBtn->Location = System::Drawing::Point(142, 16);
			this->P8InstrumentChangeBtn->Name = L"P8InstrumentChangeBtn";
			this->P8InstrumentChangeBtn->Size = System::Drawing::Size(75, 31);
			this->P8InstrumentChangeBtn->TabIndex = 7;
			this->P8InstrumentChangeBtn->Text = L"Change";
			this->P8InstrumentChangeBtn->UseVisualStyleBackColor = true;
			// 
			// P8OneSndInstUpDown
			// 
			this->P8OneSndInstUpDown->Location = System::Drawing::Point(67, 22);
			this->P8OneSndInstUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P8OneSndInstUpDown->Name = L"P8OneSndInstUpDown";
			this->P8OneSndInstUpDown->Size = System::Drawing::Size(53, 22);
			this->P8OneSndInstUpDown->TabIndex = 6;
			// 
			// label51
			// 
			this->label51->AutoSize = true;
			this->label51->Location = System::Drawing::Point(6, 24);
			this->label51->Name = L"label51";
			this->label51->Size = System::Drawing::Size(55, 12);
			this->label51->TabIndex = 5;
			this->label51->Text = L"Instrument";
			// 
			// groupBox33
			// 
			this->groupBox33->Controls->Add(this->P8OneChordReferenceUpDown);
			this->groupBox33->Controls->Add(this->P8OneChordMuteBtn);
			this->groupBox33->Controls->Add(this->P8OneChordSendBtn);
			this->groupBox33->Controls->Add(this->label53);
			this->groupBox33->Controls->Add(this->P8OneChordChordBox);
			this->groupBox33->Controls->Add(this->P8OneChordModeUpDown);
			this->groupBox33->Controls->Add(this->label54);
			this->groupBox33->Controls->Add(this->label55);
			this->groupBox33->Location = System::Drawing::Point(7, 203);
			this->groupBox33->Name = L"groupBox33";
			this->groupBox33->Size = System::Drawing::Size(228, 100);
			this->groupBox33->TabIndex = 13;
			this->groupBox33->TabStop = false;
			this->groupBox33->Text = L"Play one chord";
			// 
			// P8OneChordReferenceUpDown
			// 
			this->P8OneChordReferenceUpDown->Location = System::Drawing::Point(62, 16);
			this->P8OneChordReferenceUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {127, 0, 0, 0});
			this->P8OneChordReferenceUpDown->Name = L"P8OneChordReferenceUpDown";
			this->P8OneChordReferenceUpDown->Size = System::Drawing::Size(65, 22);
			this->P8OneChordReferenceUpDown->TabIndex = 12;
			this->P8OneChordReferenceUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// P8OneChordMuteBtn
			// 
			this->P8OneChordMuteBtn->Location = System::Drawing::Point(142, 54);
			this->P8OneChordMuteBtn->Name = L"P8OneChordMuteBtn";
			this->P8OneChordMuteBtn->Size = System::Drawing::Size(75, 35);
			this->P8OneChordMuteBtn->TabIndex = 11;
			this->P8OneChordMuteBtn->Text = L"Mute";
			this->P8OneChordMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P8OneChordSendBtn
			// 
			this->P8OneChordSendBtn->Location = System::Drawing::Point(142, 16);
			this->P8OneChordSendBtn->Name = L"P8OneChordSendBtn";
			this->P8OneChordSendBtn->Size = System::Drawing::Size(75, 35);
			this->P8OneChordSendBtn->TabIndex = 10;
			this->P8OneChordSendBtn->Text = L"Send";
			this->P8OneChordSendBtn->UseVisualStyleBackColor = true;
			// 
			// label53
			// 
			this->label53->AutoSize = true;
			this->label53->Location = System::Drawing::Point(14, 72);
			this->label53->Name = L"label53";
			this->label53->Size = System::Drawing::Size(35, 12);
			this->label53->TabIndex = 9;
			this->label53->Text = L"Chord";
			// 
			// P8OneChordChordBox
			// 
			this->P8OneChordChordBox->FormattingEnabled = true;
			this->P8OneChordChordBox->Items->AddRange(gcnew cli::array< System::Object^  >(8) {L"M", L"m", L"9", L"7", L"Maj7", L"m7", 
				L"dim", L"m7-5"});
			this->P8OneChordChordBox->Location = System::Drawing::Point(62, 69);
			this->P8OneChordChordBox->Name = L"P8OneChordChordBox";
			this->P8OneChordChordBox->Size = System::Drawing::Size(65, 20);
			this->P8OneChordChordBox->TabIndex = 8;
			this->P8OneChordChordBox->Text = L"M";
			// 
			// P8OneChordModeUpDown
			// 
			this->P8OneChordModeUpDown->Location = System::Drawing::Point(62, 42);
			this->P8OneChordModeUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {7, 0, 0, 0});
			this->P8OneChordModeUpDown->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			this->P8OneChordModeUpDown->Name = L"P8OneChordModeUpDown";
			this->P8OneChordModeUpDown->Size = System::Drawing::Size(65, 22);
			this->P8OneChordModeUpDown->TabIndex = 7;
			this->P8OneChordModeUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
			// 
			// label54
			// 
			this->label54->AutoSize = true;
			this->label54->Location = System::Drawing::Point(14, 44);
			this->label54->Name = L"label54";
			this->label54->Size = System::Drawing::Size(32, 12);
			this->label54->TabIndex = 2;
			this->label54->Text = L"Mode";
			// 
			// label55
			// 
			this->label55->AutoSize = true;
			this->label55->Location = System::Drawing::Point(6, 18);
			this->label55->Name = L"label55";
			this->label55->Size = System::Drawing::Size(52, 12);
			this->label55->TabIndex = 0;
			this->label55->Text = L"Reference";
			// 
			// groupBox34
			// 
			this->groupBox34->Controls->Add(this->P8OneSndMuteBtn);
			this->groupBox34->Controls->Add(this->P8OneSndSendBtn);
			this->groupBox34->Controls->Add(this->P8OneSndPitchUpDown);
			this->groupBox34->Controls->Add(this->label57);
			this->groupBox34->Location = System::Drawing::Point(7, 145);
			this->groupBox34->Name = L"groupBox34";
			this->groupBox34->Size = System::Drawing::Size(228, 52);
			this->groupBox34->TabIndex = 12;
			this->groupBox34->TabStop = false;
			this->groupBox34->Text = L"Play one sound";
			// 
			// P8OneSndMuteBtn
			// 
			this->P8OneSndMuteBtn->Location = System::Drawing::Point(157, 13);
			this->P8OneSndMuteBtn->Name = L"P8OneSndMuteBtn";
			this->P8OneSndMuteBtn->Size = System::Drawing::Size(60, 30);
			this->P8OneSndMuteBtn->TabIndex = 7;
			this->P8OneSndMuteBtn->Text = L"Mute";
			this->P8OneSndMuteBtn->UseVisualStyleBackColor = true;
			// 
			// P8OneSndSendBtn
			// 
			this->P8OneSndSendBtn->Location = System::Drawing::Point(92, 13);
			this->P8OneSndSendBtn->Name = L"P8OneSndSendBtn";
			this->P8OneSndSendBtn->Size = System::Drawing::Size(60, 30);
			this->P8OneSndSendBtn->TabIndex = 6;
			this->P8OneSndSendBtn->Text = L"Send";
			this->P8OneSndSendBtn->UseVisualStyleBackColor = true;
			// 
			// P8OneSndPitchUpDown
			// 
			this->P8OneSndPitchUpDown->Location = System::Drawing::Point(40, 18);
			this->P8OneSndPitchUpDown->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {128, 0, 0, 0});
			this->P8OneSndPitchUpDown->Name = L"P8OneSndPitchUpDown";
			this->P8OneSndPitchUpDown->Size = System::Drawing::Size(43, 22);
			this->P8OneSndPitchUpDown->TabIndex = 5;
			this->P8OneSndPitchUpDown->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
			// 
			// label57
			// 
			this->label57->AutoSize = true;
			this->label57->Location = System::Drawing::Point(6, 22);
			this->label57->Name = L"label57";
			this->label57->Size = System::Drawing::Size(28, 12);
			this->label57->TabIndex = 1;
			this->label57->Text = L"Pitch";
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(34, 240);
			this->button1->Name = L"button1";
			this->button1->Size = System::Drawing::Size(75, 23);
			this->button1->TabIndex = 10;
			this->button1->Text = L"button1";
			this->button1->UseVisualStyleBackColor = true;
			this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
			// 
			// button2
			// 
			this->button2->Location = System::Drawing::Point(118, 294);
			this->button2->Name = L"button2";
			this->button2->Size = System::Drawing::Size(75, 23);
			this->button2->TabIndex = 11;
			this->button2->Text = L"button2";
			this->button2->UseVisualStyleBackColor = true;
			this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(524, 360);
			this->Controls->Add(this->button2);
			this->Controls->Add(this->button1);
			this->Controls->Add(this->tabControl1);
			this->Controls->Add(this->groupBox5);
			this->Controls->Add(this->groupBox1);
			this->Name = L"Form1";
			this->Text = L"MidiSound";
			this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
			this->groupBox1->ResumeLayout(false);
			this->groupBox5->ResumeLayout(false);
			this->groupBox5->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->ContChordTempoUpDown))->EndInit();
			this->tabControl1->ResumeLayout(false);
			this->tabPage1->ResumeLayout(false);
			this->groupBox6->ResumeLayout(false);
			this->groupBox6->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1VolBar))->EndInit();
			this->groupBox4->ResumeLayout(false);
			this->groupBox4->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneSndInstUpDown))->EndInit();
			this->groupBox3->ResumeLayout(false);
			this->groupBox3->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneChordModeUpDown))->EndInit();
			this->groupBox2->ResumeLayout(false);
			this->groupBox2->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P1OneSndPitchUpDown))->EndInit();
			this->tabPage2->ResumeLayout(false);
			this->groupBox7->ResumeLayout(false);
			this->groupBox7->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2VolBar))->EndInit();
			this->groupBox8->ResumeLayout(false);
			this->groupBox8->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneSndInstUpDown))->EndInit();
			this->groupBox9->ResumeLayout(false);
			this->groupBox9->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneChordModeUpDown))->EndInit();
			this->groupBox10->ResumeLayout(false);
			this->groupBox10->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P2OneSndPitchUpDown))->EndInit();
			this->tabPage3->ResumeLayout(false);
			this->groupBox11->ResumeLayout(false);
			this->groupBox11->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3VolBar))->EndInit();
			this->groupBox12->ResumeLayout(false);
			this->groupBox12->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneSndInstUpDown))->EndInit();
			this->groupBox13->ResumeLayout(false);
			this->groupBox13->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneChordModeUpDown))->EndInit();
			this->groupBox14->ResumeLayout(false);
			this->groupBox14->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P3OneSndPitchUpDown))->EndInit();
			this->tabPage4->ResumeLayout(false);
			this->groupBox15->ResumeLayout(false);
			this->groupBox15->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4VolBar))->EndInit();
			this->groupBox16->ResumeLayout(false);
			this->groupBox16->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneSndInstUpDown))->EndInit();
			this->groupBox17->ResumeLayout(false);
			this->groupBox17->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneChordModeUpDown))->EndInit();
			this->groupBox18->ResumeLayout(false);
			this->groupBox18->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P4OneSndPitchUpDown))->EndInit();
			this->tabPage5->ResumeLayout(false);
			this->groupBox19->ResumeLayout(false);
			this->groupBox19->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5VolBar))->EndInit();
			this->groupBox20->ResumeLayout(false);
			this->groupBox20->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneSndInstUpDown))->EndInit();
			this->groupBox21->ResumeLayout(false);
			this->groupBox21->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneChordModeUpDown))->EndInit();
			this->groupBox22->ResumeLayout(false);
			this->groupBox22->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P5OneSndPitchUpDown))->EndInit();
			this->tabPage6->ResumeLayout(false);
			this->groupBox23->ResumeLayout(false);
			this->groupBox23->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6VolBar))->EndInit();
			this->groupBox24->ResumeLayout(false);
			this->groupBox24->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneSndInstUpDown))->EndInit();
			this->groupBox25->ResumeLayout(false);
			this->groupBox25->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneChordModeUpDown))->EndInit();
			this->groupBox26->ResumeLayout(false);
			this->groupBox26->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P6OneSndPitchUpDown))->EndInit();
			this->tabPage7->ResumeLayout(false);
			this->groupBox27->ResumeLayout(false);
			this->groupBox27->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7VolBar))->EndInit();
			this->groupBox28->ResumeLayout(false);
			this->groupBox28->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneSndInstUpDown))->EndInit();
			this->groupBox29->ResumeLayout(false);
			this->groupBox29->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneChordModeUpDown))->EndInit();
			this->groupBox30->ResumeLayout(false);
			this->groupBox30->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P7OneSndPitchUpDown))->EndInit();
			this->tabPage8->ResumeLayout(false);
			this->groupBox31->ResumeLayout(false);
			this->groupBox31->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8VolUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8VolBar))->EndInit();
			this->groupBox32->ResumeLayout(false);
			this->groupBox32->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneSndInstUpDown))->EndInit();
			this->groupBox33->ResumeLayout(false);
			this->groupBox33->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneChordReferenceUpDown))->EndInit();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneChordModeUpDown))->EndInit();
			this->groupBox34->ResumeLayout(false);
			this->groupBox34->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->P8OneSndPitchUpDown))->EndInit();
			this->ResumeLayout(false);

		}
#pragma endregion

private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {
				
				ShowMidiDevice(MidiOutBox);
				//MidiOutChangeBtn_Click(sender, e);  //直接幫他選擇
				srand( time(NULL) );  //一開始執行過一次就好
			}
private: System::Void MidiOutChangeBtn_Click(System::Object^  sender, System::EventArgs^  e) {	
				 
				//取得目前使用者選擇的Device
				char* OutputSelect = (char*)(void*)Marshal::StringToHGlobalAnsi( this->MidiOutBox->Text );
				
				if( strcmp( "Microsoft GS Wavetable Synthetizer" , OutputSelect ) == 0 )  //如果選擇的是Microsoft
				{
					for (int i=0; i<DevNum; i++)  //跑所有的Device
					{
						midiOutClose(device[i]);
						//midiOutOpen(&device[i], MicroDeviceNum, 0, 0, CALLBACK_NULL);
					}
					midiOutOpen(&device[0], MicroDeviceNum, 0, 0, CALLBACK_FUNCTION);

					device[1] = device[0];
					device[2] = device[0];
					device[3] = device[0];
					device[4] = device[0];
					device[5] = device[0];
					device[6] = device[0];
					device[7] = device[0];

					//MessageBox::Show( Convert::ToString(MicroDeviceNum) );
				}
				else if( strcmp( "GigaStudio Output" , OutputSelect ) == 0 )  //如果選擇的是GigaStudio
				{
					for (int i=0; i<DevNum; i++)  //跑所有的Device
					{
						midiOutClose(device[i]);
						midiOutOpen(&device[i], GigaDeviceNum + i, 0, 0, CALLBACK_NULL);
					}
					//MessageBox::Show( Convert::ToString(GigaDeviceNum) );
				}
			}

private: System::Void MidiOutBox_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {

			 MidiOutChangeBtn_Click(sender, e);  //直接幫他選擇
		 }

private: System::Void PlayTimer_Tick(System::Object^  sender, System::EventArgs^  e) {
			 
			 //120是其bpm值，表示一個四分音符的長度有1分鐘除以120等分＝0.5秒（如果拍子記號是4/4拍的話，1小節就是0.5秒乘4拍＝2秒時值）。
			 this->PlayTimer->Interval = ( 1000 * 60.0 / (float)this->ContChordTempoUpDown->Value ) / 2.0;
			 //this->PlayTimer->Interval = 250;

			 int LastChord;

			 if ( TimePosition == 0 )  //如果是一開始預先做的事
			 {
				 MuteAllNote();   //全部靜音
				 //ResetAllNote();  //重設所有Note
				 
				 //計算出所有順階和弦
				 CalculateDiatonicChord(60, "M");
				 
				 //編排和弦
				 LastChord = GenerateRandChord_0_To_3(1);  //寫出亂數的和弦排列(0~3小節)，輸入開始和弦，回傳最後一個和弦
				 GenerateRandChord_4_To_7(LastChord);
				 
				 //編排聲線
				 CreateMelodyLine();  

				 //編排旋律
				 GenerateRandMelody(0);
				 GenerateRandMelody(1);
				 GenerateRandMelody(2);
				 GenerateRandMelody(3);
				 GenerateRandMelody(4);
				 GenerateRandMelody(5);
				 GenerateRandMelody(6);
				 GenerateRandMelody(7);
			 }

			 PlayCurrentNotation();   //演奏當下的所有音符
			 ResetOneTime(TimePosition);  //演奏下去了，把他重設

			 //更新時間軸
			 if ( TimePosition + 1 >= MaxNote )
			 {
				 TimePosition = 0;  //時間軸歸0
			 }
			 else
			 {
				 TimePosition ++;  //往前移動
			 }
			 
		 }

private: System::Void ContChordPlayBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 this->PlayTimer->Enabled = true;
		 }
private: System::Void ContChordStopBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 this->PlayTimer->Enabled = false;
			 MuteAllNote();   //把所有Note關掉
		 }

private: System::Void P1InstrumentChangeBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 //Select Instrument
			 //如果需要分開控制多個音，宣告多一點的device分開控制
			 //規則：一個音高只能有一種樂器，也就是說，不能有兩種樂器同時發出Do的聲音，
			 //但是可以有兩種樂器同時發出Do跟Re的聲音。
			 message.data[0] = 0xC0;  // Change Instrument
			 message.data[1] = (unsigned char)this->P1OneSndInstUpDown->Value;    // Instrument
			 midiOutShortMsg(device[0], message.word);
		 }
private: System::Void P1OneSndSendBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 message.data[0] = 0x90;  // MIDI note-on message (requires to data bytes)
			 message.data[1] = (unsigned char)this->P1OneSndPitchUpDown->Value;  //Pitch
			 message.data[2] = (unsigned char)this->P1VolUpDown->Value; // MIDI note-on message: Key velocity (100 = loud)
			 message.data[3] = 0;     // Unused parameter
			 midiOutShortMsg(device[0], message.word);
		 }
private: System::Void P1OneSndMuteBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 message.data[0] = 0x80;  // MIDI note-on message (requires to data bytes)
			 message.data[1] = (unsigned char)this->P1OneSndPitchUpDown->Value;  //Pitch
			 midiOutShortMsg(device[0], message.word);
		 }

private: System::Void P1OneChordSendBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 String^ str= this->P1OneChordChordBox->Text; 
			 PlayOneChord( "Play", device[0], (int)this->P1OneChordReferenceUpDown->Value, (int)this->P1OneChordModeUpDown->Value, 
				 (char*)(void*)Marshal::StringToHGlobalAnsi(str), (int)this->P1VolUpDown->Value );
		 }

private: System::Void P1OneChordMuteBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 String^ str= this->P1OneChordChordBox->Text; 
			 PlayOneChord( "Mute", device[0], (int)this->P1OneChordReferenceUpDown->Value, (int)this->P1OneChordModeUpDown->Value, 
				 (char*)(void*)Marshal::StringToHGlobalAnsi(str), (int)this->P1VolUpDown->Value );
		 }
private: System::Void P1VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
			 
			 //更改音量
			 this->P1VolUpDown->Value = this->P1VolBar->Value;
			 PortVolume[0] = this->P1VolBar->Value;
		 }
private: System::Void P2VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {

			 //更改音量
			 this->P2VolUpDown->Value = this->P2VolBar->Value;
			 PortVolume[1] = this->P2VolBar->Value;
		 }

private: System::Void P3VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {

			 //更改音量
			 this->P3VolUpDown->Value = this->P3VolBar->Value;
			 PortVolume[2] = this->P3VolBar->Value;
		 }
private: System::Void P4VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {

			 //更改音量
			 this->P4VolUpDown->Value = this->P4VolBar->Value;
			 PortVolume[3] = this->P4VolBar->Value;
		 }
private: System::Void P5VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {

			 //更改音量
			 this->P5VolUpDown->Value = this->P5VolBar->Value;
			 PortVolume[4] = this->P5VolBar->Value;
		 }
private: System::Void P6VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {

			 //更改音量
			 this->P6VolUpDown->Value = this->P6VolBar->Value;
			 PortVolume[5] = this->P6VolBar->Value;
		 }
private: System::Void P7VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {

			 //更改音量
			 this->P7VolUpDown->Value = this->P7VolBar->Value;
			 PortVolume[6] = this->P7VolBar->Value;
		 }
private: System::Void P8VolBar_ValueChanged(System::Object^  sender, System::EventArgs^  e) {

			 //更改音量
			 this->P8VolUpDown->Value = this->P8VolBar->Value;
			 PortVolume[7] = this->P8VolBar->Value;
		 }
private: System::Void P2InstrumentChangeBtn_Click(System::Object^  sender, System::EventArgs^  e) {
			 
			 message.data[0] = 0xC0;  // Change Instrument
			 message.data[1] = (unsigned char)this->P2OneSndInstUpDown->Value;    // Instrument
			 midiOutShortMsg(device[1], message.word);
		 }
private: System::Void P2OneSndSendBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 message.data[0] = 0x90;  // MIDI note-on message (requires to data bytes)
			 message.data[1] = (unsigned char)this->P2OneSndPitchUpDown->Value;  //Pitch
			 message.data[2] = (unsigned char)this->P2VolUpDown->Value; // MIDI note-on message: Key velocity (100 = loud)
			 message.data[3] = 0;     // Unused parameter
			 midiOutShortMsg(device[1], message.word);
		 }
private: System::Void P2OneSndMuteBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 message.data[0] = 0x80;  // MIDI note-on message (requires to data bytes)
			 message.data[1] = (unsigned char)this->P2OneSndPitchUpDown->Value;  //Pitch
			 midiOutShortMsg(device[1], message.word);
		 }
private: System::Void P2OneChordSendBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 String^ str= this->P2OneChordChordBox->Text; 
			 PlayOneChord( "Play", device[1], (int)this->P2OneChordReferenceUpDown->Value, (int)this->P2OneChordModeUpDown->Value, 
				 (char*)(void*)Marshal::StringToHGlobalAnsi(str), (int)this->P2VolUpDown->Value );
		 }
private: System::Void P2OneChordMuteBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 String^ str= this->P2OneChordChordBox->Text; 
			 PlayOneChord( "Mute", device[1], (int)this->P2OneChordReferenceUpDown->Value, (int)this->P2OneChordModeUpDown->Value, 
				 (char*)(void*)Marshal::StringToHGlobalAnsi(str), (int)this->P2VolUpDown->Value );
		 }

private: System::Void P3InstrumentChangeBtn_Click(System::Object^  sender, System::EventArgs^  e) {

					  message.data[0] = 0xC0;  // Change Instrument
					  message.data[1] = (unsigned char)this->P3OneSndInstUpDown->Value;    // Instrument
					  midiOutShortMsg(device[2], message.word);
				  }
private: System::Void P3OneSndSendBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 message.data[0] = 0x90;  // MIDI note-on message (requires to data bytes)
			 message.data[1] = (unsigned char)this->P3OneSndPitchUpDown->Value;  //Pitch
			 message.data[2] = (unsigned char)this->P3VolUpDown->Value; // MIDI note-on message: Key velocity (100 = loud)
			 message.data[3] = 0;     // Unused parameter
			 midiOutShortMsg(device[2], message.word);
		 }
private: System::Void P3OneSndMuteBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 message.data[0] = 0x80;  // MIDI note-on message (requires to data bytes)
			 message.data[1] = (unsigned char)this->P3OneSndPitchUpDown->Value;  //Pitch
			 midiOutShortMsg(device[2], message.word);
		 }
private: System::Void P3OneChordSendBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 String^ str= this->P3OneChordChordBox->Text; 
			 PlayOneChord( "Play", device[2], (int)this->P3OneChordReferenceUpDown->Value, (int)this->P3OneChordModeUpDown->Value, 
				 (char*)(void*)Marshal::StringToHGlobalAnsi(str), (int)this->P3VolUpDown->Value );
		 }
private: System::Void P3OneChordMuteBtn_Click(System::Object^  sender, System::EventArgs^  e) {

			 String^ str= this->P3OneChordChordBox->Text; 
			 PlayOneChord( "Mute", device[2], (int)this->P3OneChordReferenceUpDown->Value, (int)this->P3OneChordModeUpDown->Value, 
				 (char*)(void*)Marshal::StringToHGlobalAnsi(str), (int)this->P3VolUpDown->Value );
		 }
private: System::Void P4InstrumentChangeBtn_Click(System::Object^  sender, System::EventArgs^  e) {
		 }

private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {

// 			 message.data[0] = 0xB0;
// 			 message.data[1] = 0x07;
// 			 message.data[2] = 0x64;
// 			 message.data[3] = 0;     // Unused parameter
// 			 midiOutShortMsg(device[0], message.word);
			 //0xFF 0x51 0x03 0x07


			 HWND targetWindow=::FindWindow(NULL, L"Nuendo");
			 HWND hChild = ::FindWindowEx(targetWindow, NULL, L"MDIClient", NULL);
			 HWND hChild2 = ::FindWindowEx(hChild, NULL, L"SteinbergDocWindowClass", L"Tempo Track - Midi.npr");

			 ::SendMessage(hChild2, WM_MOUSEMOVE,  0, MAKELPARAM(318,20));
			 ::SendMessage(hChild2, WM_LBUTTONDOWN,  MK_LBUTTON, MAKELPARAM(318,20));
			 ::SendMessage(hChild2, WM_LBUTTONUP,  0, MAKELPARAM(318,20));
			 
		 }
private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {

// 			 message.data[0] = 0xB0;
// 			 message.data[1] = 0x07;
// 			 message.data[2] = 0x45;
// 			 message.data[3] = 0;     // Unused parameter
// 			 midiOutShortMsg(device[0], message.word);


			 HWND targetWindow=::FindWindow(NULL, L"Nuendo");
			 HWND hChild = ::FindWindowEx(targetWindow, NULL, L"MDIClient", NULL);
			 HWND hChild2 = ::FindWindowEx(hChild, NULL, L"SteinbergDocWindowClass", L"Tempo Track - Midi.npr");

			 ::SendMessage(hChild2, WM_MOUSEMOVE,  0, MAKELPARAM(318,30));
			 ::SendMessage(hChild2, WM_LBUTTONDOWN,  MK_LBUTTON, MAKELPARAM(318,30));
			 ::SendMessage(hChild2, WM_LBUTTONUP,  0, MAKELPARAM(318,30));
		 }
};
}

